Hi all, I'm trying to implement a websocket that can use injected objects using dw 4 beta.4 with jetty 11. Using WebSocketAdapter I can get the websocket to work using environment.servlets().addServlet() or environment.getApplicationContext().addServlet(), but without injected objects. I tried to replace JettyWebSocketServlet with my own, and change the register method to use ServiceLocator createAndInitialize() instead of just calling the constructor, but then I get the error "There was no object available in __HK2_Generated_0 for injection at SystemInjecteeImpl".
Injected objects work with REST endpoints in the same app. How can I make this work? Thanks -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-user/7caecdeb-1760-4bfb-a8bf-d0a590d2b21dn%40googlegroups.com.
