You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thusitha Thilina Dayaratne <th...@gmail.com> on 2015/04/09 09:05:37 UTC

Access ServletContext from Session in new websocket implementation

Hi,

I'm trying to upgrade websocket application which is using Tomcat 7 to
Tomcat 8.0.20(Which supports javax.websocket v1)
In the current implementation we have extended the WebSocketServlet

Is there a way that I can access the servletContext in the new websocket
implementation?
As I understand I get the Session and msg @OnMessage


Thanks
Best Regards
/Thusitha
--