Tuesday, 15 May 2012

java - netty-socketio integration with Tomcat8 -



java - netty-socketio integration with Tomcat8 -

i'm thinking of using socket.io real time web app written in java. see socket.io server developed node.js , there ports in java. seems netty-socketio stable solution.

i can't figure out though if can embed in war file within application running on tomcat8 , have no issue running that.

has integrated within war file in tomcat8?

it's easy pie, create com.corundumstudio.socketio.socketioserver. example:

in tomcat servlet.init method type follow:

configuration config = new configuration(); config.sethostname("localhost"); config.setport(81); socketioserver server = new socketioserver(config); server.start();

java tomcat socket.io

No comments:

Post a Comment