Enabling WebSocket Support in JBoss EAP 6.3 and up - Atmosphere/atmosphere GitHub Wiki

To enable WebSocket support in JBoss EAP, execute (taken from)

# Batch script to enable the NIO2 connector in the web subsystem of the server configuration file

# Start batching commands
batch

# Configure the web http connector to use the NIO2 protocol
/subsystem=web/connector=http/:write-attribute(name=protocol,value=org.apache.coyote.http11.Http11NioProtocol)

# Run the batch commands
run-batch

# Reload the server configuration
:reload

Then create jboss-web.xml under WEB-INF with:

<jboss-web version="7.2"
        xmlns="http://www.jboss.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee schema/jboss-web_7_2.xsd">
        <enable-websockets>true</enable-websockets>
</jboss-web>

Finally, starts JBoss EAP using JDK7 (won't work with other version)

For Linux:  EAP_HOME/bin/standalone.sh
For Windows:  EAP_HOME\bin\standalone.bat
⚠️ **GitHub.com Fallback** ⚠️