Nick if you dont mind Comet's implementation of WebSocket events to Servlet-3.0 POST and GET then checkout http://java.dzone.com/articles/tomcat-websockets-html5
I'll let you test drive to see if Ant 's WebSocketServlet fully supports all aspects of the WebSocket spechttp://en.wikipedia.org/wiki/WebSocket Keep us apprised, Happy Driving Martin ______________________________________________ Place Long-winded disclaimer here > From: nicho...@nicholaswilliams.net > Subject: Getting HttpSession from HandshakeRequest/Configurator > Date: Sun, 17 Mar 2013 17:56:23 -0500 > To: users@tomcat.apache.org > > Based on my reading of the WebSocket spec mailing lists and API > documentation, if I want to get the HttpSession that exists when a WebSocket > connection is negotiated I need to extend ServerEndpointConfig.Configurator, > override #modifyHandshake(), and call #getHttpSession() on the > HandshakeRequest. However, I need a little clarification, because I'm not > seeing how this is going to work: > > 1) Tomcat doesn't implement HandshakeRequest ... anywhere. So I'm not even > seeing how that method could ever be called with a non-null argument. > (Admittedly, I haven't run this yet ... I'm sending this preemptively while I > complete my code, to go ahead and get some feedback). > > 2) None of the arguments to #modifyHandshake() provide access to the Session. > So how am I supposed to do anything with it? How can I associate the > HttpSession with the Session? > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >