tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Compagner <jcompag...@servoy.com>
Subject Re: Accessing ServletContext from WebSocket endpoint
Date Fri, 06 Dec 2013 08:53:06 GMT
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 <milesg78@gmail.com> wrote:

> Hi,
>
>
> 2013/12/5 Enrico Olivelli <eolivelli@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

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