Re: Getting HttpSession from HandshakeRequest/Configurator

2013-03-18 Thread Mark Thomas
On 18/03/2013 00:22, Nick Williams wrote: > Martin, > > Don't believe we've spoken before. Good to meet you. > > I'm working on a book on Servlet 3.1 + WebSockets + Spring Framework > 4 + Hibernate + Spring Security. My interest is purely the new Java > WebSockets API. The existing Comet implemen

Re: Getting HttpSession from HandshakeRequest/Configurator

2013-03-17 Thread Nick Williams
On Mar 17, 2013, at 5:56 PM, Nick Williams wrote: > 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 #modifyHa

Re: Getting HttpSession from HandshakeRequest/Configurator

2013-03-17 Thread Nick Williams
Martin, Don't believe we've spoken before. Good to meet you. I'm working on a book on Servlet 3.1 + WebSockets + Spring Framework 4 + Hibernate + Spring Security. My interest is purely the new Java WebSockets API. The existing Comet implementation in Tomcat 7.0 will be deprecated in 7.0 once t

RE: Getting HttpSession from HandshakeRequest/Configurator

2013-03-17 Thread Martin Gainty
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