On 7 December 2013 04:48, Christopher Schultz <ch...@christopherschultz.net>wrote:
> > because i only see currently api to get the HttpSession and then > > through that the ServletContext, problem is that there is no http > > session.. > > Aah... if there is no session, getHttpSession doesn't automatically > create one(). Boo. and can it create one? if a browser does a ws: request that will be first just a http request i guess that is then "upgraded" But in that first request can cookies be send over? Because if a websocket creates a http session then a jsessionid cookie must be set in the browser over the websocket request. And that jsession cookie must then be used by also normal http request a browser does to that server.. problem is that i don't want to create a session, i just want to ServletContext to read some files. So something like: EndpointConfig.getUserProperties().put("ServletContext",request.get Context()); That context can then just return an object which i need to cast and is then up to the container to provide. -- Johan Compagner Servoy