java-websockettyrus

Using Java Websocket API Implementation without a Web-Server


Is it possible to implement a custom WebSocket app in Java without having to run it on a Web-Server like GlassFish, Tomcat, Jetty etc?

I intend to develop a very custom-tailored App and would like to implement my own way to manage threads, monitoring, load balance, messaging and stuff like that. (compared with e.g. Java TCP’s ServerSocket ) I know there are Tyrus containers such as Grizzly integration for standalone server and Servlet support and here is Jetty as well, but I am not sure if that is what I am looking for. Is Grizzly or Jetty perhaps a standalone solution per se? I know Tyrus is some kind of wrapper for Grizzly WebSocket Implementation but to be honest, I am not sure how those two are interconnected.

Any suggestions are more than welcome! Thank you!


Solution

  • In other words, you're trying to implement a WebSocket server, something like: https://code.google.com/p/jwebsocket/ (link is dead)

    http://jwebsocket.org/downloads/jwebsocket-latest-versions (new link)