Re: ServerSocket from within Tapestry

"Christopher Dodunski" <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <[email protected]>
I like the look of the WebSocket library below:

https://github.com/TooTallNate/Java-WebSocket

It is 100% Java, and includes example code for both server and client. 
Also, it supports multi-threading 'out of the box'.

If I were to use this library's server code, placed in the Tapestry
'services' directory, must I still decorate the server class with
@ServerEndPoint for Tomcat/Tapestry to direct WebSocket connections to it?

Also, where would you recommend placing the below lines of start up code
in order to run the WebSocket server inside the 'services' directory?

  WebSocketServer server = new SimpleServer(new InetSocketAddress(host,
port));
  server.run();

Thanks,

Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.