It should be possible to connect a WebSocket and a JMS queue using standards. The usecase is based on the idea where each websocket session will be a subscriber to a Topic. In this example specifically, code is based on a WebSocket session consuming a Queue.
It is possible to inject a JMSContext inside a WebSocket using @Inject at constructor , but whenever I try to inject a Queue/Topic, it does not get injected using @Resource .
Also tried to use JMS 1.1 code (creating a InitialContext, doing lookup on ConnectionFactory, etc), it dit not work.
Most of the time, I get this error .