Considering Web Socket for a JavaEE project

The requirements of the project are: If any user updates a record (any record), all relevant parties must be notified immediately by displaying an alert somewhere in the webpage. In previous projects, the browser would poll the server for any relevant changes every N seconds.

I have been reading on web sockets and think this is the prefect solution for this problem (I do not like polling).

I have some questions regarding Web Sockets in JavaEE. Please correct me if I am wrong.

  • Web Socket seems to be supported on Glassfish server not in latest version of JBoss/Wildfly.
  • If 1000 clients are logged in and connected to the server using Web Socket, does the server have 1000 separate sockets open for each connection? Or is the implementation similar to Node.js where a single server socket is used for all client connections. This information does not seem to be documented anywhere in JavaEE tutorials.
  • 链接地址: http://www.djcxy.com/p/44722.html

    上一篇: MVC核心,Web套接字和线程

    下一篇: 考虑JavaEE项目的Web Socket