Nick,
Thank you once again. In a servlet injector can be accessed through
getServletContext.getAttribute("Injector")
As you said, I had to implement static method that returns instance of
injector and use it in my EndpointConfiguration to instantiate
ServerEndpoint. This is what I have done:
//
On Nov 6, 2013, at 4:24 PM, Marko Sanković wrote:
> Nick, thanks for your quick response.
>
> Unfortunately, specifying javax.websocket.server.ServerEndpointConfig.
> Configurator is still not enough. This is what I have tried so far:
>
> @ServerEndpoint(value = "/wsendpoint", configurator =
>
Nick, thanks for your quick response.
Unfortunately, specifying javax.websocket.server.ServerEndpointConfig.
Configurator is still not enough. This is what I have tried so far:
@ServerEndpoint(value = "/wsendpoint", configurator =
WsEndpointConfigurator.class)
public class WsEndpoint {
@Injec
On Nov 6, 2013, at 7:55 AM, Marko Sanković wrote:
> Hi,
>
> For the last couple of hours I've been trying to inject a simple object
> into the class that is @ServerEndpoint annotated.
>
> As stated: Tomcat implements the Java WebSocket 1.0 API defined by JSR-356.
>
> I'm using Guice as depende
Hi,
For the last couple of hours I've been trying to inject a simple object
into the class that is @ServerEndpoint annotated.
As stated: Tomcat implements the Java WebSocket 1.0 API defined by JSR-356.
I'm using Guice as dependency injection framework and Tomcat 7.0.47.
This is how my websocket