Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created June 17, 2016 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/01542e0e8d362554d116f3e214295817 to your computer and use it in GitHub Desktop.
Save abhirockzz/01542e0e8d362554d116f3e214295817 to your computer and use it in GitHub Desktop.
Embedded Websocket container using Tyrus Grizzly container
public class TyrusGrizzlyWebsocketRunner {
public static void main(String[] args) throws DeploymentException, IOException, InterruptedException {
Server server = new Server("localhost", 8080, "", null, MyWsendpoint.class);
server.start();
System.out.print("---- Server Started -----");
new CountDownLatch(1).await();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment