Re: Injecting one service into another 'ignored path' service

2019-04-08 Thread Christopher Dodunski
And here, another version of custom configurator, where Jersey is the CDI implementation. public class CdiAwareConfigurator extends ServerEndpointConfig.Configurator { public T getEndpointInstance(Class endpointClass) throws InstantiationException { return CDI.current().select(endpo

Re: Injecting one service into another 'ignored path' service

2019-04-08 Thread Christopher Dodunski
I found a thread where someone else was grappling with this same issue, but in his case the IoC framework was Google Guice. http://tomcat.10.x6.nabble.com/ServerEndpoint-Guice-td5007388.html Summarising his solution: Create a custom WebSocket endpoint configurator class... public class Ws