Adding websocket support to JBOSS 7 using Tyrus (WebSocket reference implementation)

I recently met Tyrus ( https://tyrus.java.net/ ), which is the reference implementation of JSR-356 (Java API for WebSockets) and also the WebSocket implementation used on GlassFish application server. Since I have a web application that will be very useful to use web sockets, I am thinking of using Tyrus to add support for web sockets. The problem is that my application is deployed on JBOSS - version 7.2.0 (EAP 6.1 Alpha).

So my question is: has anyone tried this before and is there a reason why the JBOSS 7 + Tyrus combination should not work?

Thanks.

+4
source share
1 answer

From what I know, JBOSS includes its own websocket implementation, which may run into Tyrus (there are some scanning processes that can identify classes from other implementations and can become messy). Therefore, you may need to remove this jar from the catalog of modules and, possibly, put Thira there (or include it in your military file, the effect should be the same).

In general, Tyrus only requires the implementation of the Servlet 3.1 API - if this condition is met, it should work.

0
source

Source: https://habr.com/ru/post/1484363/


All Articles