Good question, but there is currently no good answer for this. You can still do it, but it will require a deep dive into the inside of the grizzly; Tyrus is registered as an addon (see WebSocketAddOn ), and it can be combined with Jersey by registering in this container.
Please keep in mind that integrating these two frameworks together is not a trivial task - launching them in one container is the first step, but there are other things that you need to take care of, for example, the "instance provider", setting up the life cycle, etc. d. I believe this topic is beyond the scope of one SO answer - you can expect from me or some other Tyrus / Jersey team member from the blog. (I will post it here as soon as this is done).
In any case, I would recommend taking a more conservative approach and using a small container that supports Servlet 3.1; this should require a lot less work on your side and you will have a standard runtime / servlet life cycle.
source share