Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websockets in JEE6

I want to create a JEE6 application that uses websockets. Is there any library I can use to do so that allows me to use application server's port instead of opening a new port? (Which is out of JEE6 specification as far as I know)

Thanks a lot in advance.

like image 411
Rafa de Castro Avatar asked Feb 05 '26 07:02

Rafa de Castro


1 Answers

There is JSR-356, more information is here that support WebSockets on java EE7.

I made attempt to use reference implementation Tyrus on Java EE6 but without success. JSR-365 depend on Servlet 3.1 which is a part of Java EE7. Here is an answer from Tyrus developer.

This means that it is only possible to use JSR-365 on EE7 compatible application servers or servers that supports Servlet 3.1 with the help of Tyrus.

Also I checked popular Atmosphere framework. Probably it would be interesting to look at their compatibility page.

like image 50
Pavel Polushkin Avatar answered Feb 07 '26 21:02

Pavel Polushkin