On 07/12/2013 14:33, Christopher Schultz wrote:
> In this case, it's pretty clear that there is a quite desirable
> feature missing from the spec and I think it might be reasonable
> to violate it in this instance. I'd prefer to get Mark or
> Konstantin to weigh-in on such a step, because it migh
I'm trying the example from Tyrus, hoping that it could work on tomcat
https://tyrus.java.net/documentation/1.3/index/deployment.html
this is the simplest code to put ServletContext in userproperties
@WebListener
public class MyWebSocket implements ServletContextListener {
@Override
pub
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Johan,
On 12/7/13, 4:30 AM, Johan Compagner wrote:
> On 7 December 2013 04:48, Christopher Schultz
> wrote:
>
>>> because i only see currently api to get the HttpSession and
>>> then through that the ServletContext, problem is that there is
>>> no
On 7 December 2013 04:48, Christopher Schultz
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
On Sat, Dec 7, 2013 at 5:48 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:
> Johan,
>
> On 12/6/13, 3:53 AM, Johan Compagner wrote:
> > I ask the same question yes, but i still don't see a way to really
> > do that nicely through an EndpointConfig
>
> EndpointConfig.getUserProperti
Johan,
On 12/6/13, 3:53 AM, Johan Compagner wrote:
> I ask the same question yes, but i still don't see a way to really
> do that nicely through an EndpointConfig
EndpointConfig.getUserProperties().put("ServletContext",
((HttpSession)request.getHttpSession()).getServletContext());
??
It's ugly
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 giv
Hi,
2013/12/5 Enrico Olivelli
>
> 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