Skip to content

Enabling WebSocket Support in JBoss EAP 6.3 and up

Jeanfrancois Arcand edited this page Feb 13, 2015 · 1 revision

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

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally