In addition to that, the implementation is based on the websockets implementation introduced in Apache Tomcat 7 and has compatibility with its Servlet 3.1 packaged renamed async IO.
Enabling websockets is not going to be automatic though, as Websockets 1.0 is not part of the previous JavaEE standard.
Using it involves the following checklist:
- Use a build of the JBoss Web container from the 7.4 branch with JBoss EAP 6.2; the resultant jbossweb JAR can be placed in the org.jboss.as.web module of EAP in place of the existing web JAR, either by replacing it or after editing the module descriptor to have it use the updated JAR. The JAR contains the Websockets 1.0 API classes as well as the implementation as it is meant to be used in a Java EE6 environment, so no other JAR is necessary.
- Required runtime is Java 7 for the Websockets 1.0 implementation
- Use either the APR/native connector or the NIO2 connector (the latter should be used by default in the Web 7.4 builds)
- Enable Websockets in the webapp, by loading the Servlet container initializer of the websockets implementation