Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Mark Thomas
On 26/10/2013 16:44, Johan Compagner wrote: I've just started looking at the javax.websocket implementation in tomcat 8 and I have a question about how one integrates an endpoint with application code. Using servlets as an analogy, web.xml allows configuration information to be passed to

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Johan Compagner
and i have a follow up question about this, with a servlet or a filter you can do: getServletContext() then you have access to the resources of the web application and stuff like that How is that possible in an websocket endpoint? The ServerEndpointConfig will have the modifyHandshake()

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Mark Thomas
On 27/10/2013 12:36, Johan Compagner wrote: and i have a follow up question about this, with a servlet or a filter you can do: getServletContext() then you have access to the resources of the web application and stuff like that How is that possible in an websocket endpoint? The

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Neil Martin
Thanks for the replies Mark. It does seem to me that most developers using websockets under tomcat are going to want that integration with the J2EE container. Maybe I'm wrong, but it seems like the plumbing to make the servlet context available to the EndpoingConfig will be messy because the

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Niki Dokovski
On Sun, Oct 27, 2013 at 4:46 PM, Neil Martin nsm...@gmail.com wrote: Thanks for the replies Mark. It does seem to me that most developers using websockets under tomcat are going to want that integration with the J2EE container. Maybe I'm wrong, but it seems like the plumbing to make the

Re: Tomcat 8 Websockets configuration

2013-10-27 Thread Johan Compagner
On 27 October 2013 16:09, Niki Dokovski nick...@gmail.com wrote: On Sun, Oct 27, 2013 at 4:46 PM, Neil Martin nsm...@gmail.com wrote: Thanks for the replies Mark. It does seem to me that most developers using websockets under tomcat are going to want that integration with the J2EE

Re: Tomcat 8 Websockets configuration

2013-10-26 Thread Johan Compagner
I've just started looking at the javax.websocket implementation in tomcat 8 and I have a question about how one integrates an endpoint with application code. Using servlets as an analogy, web.xml allows configuration information to be passed to servlets when they are initialized. Is there an