I ask the same question yes, but i still don't see a way to really do that nicely through an EndpointConfig
So if somebody has a nice example that gets the Servletcontext that i then can access in the websocket instance that would be nice This example should be something different then what is given here: http://stackoverflow.com/questions/17936440/accessing-httpsession-from-httpservletrequest-in-a-web-socket-socketendpoint because i only see currently api to get the HttpSession and then through that the ServletContext, problem is that there is no http session.. On 5 December 2013 21:18, Violeta Georgieva <miles...@gmail.com> wrote: > Hi, > > > 2013/12/5 Enrico Olivelli <eolive...@gmail.com> > > > > Hi, > > is there a standard way to access ServletContext from a WebSocket > ServerEndpoint ? > > Recently there was such discussion: > > http://markmail.org/message/pqkzatjastefxvd6?q=Tomcat+8+Websockets+configuration+list:org%2Eapache%2Etomcat%2Euser/ > > Regards > Violeta > -- Johan Compagner Servoy