Websockets is highly dependent on used container. In your servlet you need to use the right Tomcat classes.
Have a look at source of Primefaces Push. http://www.primefaces.org/showcase-labs/push/index.jsf They have components that work great with websockets. It'll give you an example on what you need to do for Tomcat. -- View this message in context: http://openejb.979440.n4.nabble.com/CDI-Injection-in-WebSocket-is-not-working-tp4657627p4657650.html Sent from the OpenEJB User mailing list archive at Nabble.com.
