tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Millidge" <>
Subject Re: getting frustrated with web sockets
Date Wed, 06 Jun 2012 16:40:07 GMT


I think it would be useful to get access to the session at least when you
are bootstrapping the web socket and creating the MessageInBound subclass
instance. It is very likely that a user will have accessed a web application
and logged in etc. prior to bootstrapping the websocket connection.
Therefore there's likely to be a whole bunch of useful context information I
want in my MessageInbound class when I create it.


Looking at the code it would be a simple change to pass Session into the
createWebSocketInbound(String subProtocol)  call.


Any chance we can get it added as a parameter, otherwise I'll have to hack
about with thread locals in the subclass of WebSocketServlet.





Steve Millidge
The Leading Independent Middleware Experts. 
W:  <> | 


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message