/jboss-websocket-demo

Demo of WebSocket functionality in JBoss

Primary LanguageJavaMIT LicenseMIT

JBoss EAP 6.1 (AS 7.2) using WebSocket alpha extension + jQuery + websockets

Requirement: JBoss AS 7.1.2 or later.

Tested with Windows 7, 64-bit, EAP 6.1.Alpha, Oracle JDK 7

Build with mvn clean package, deploy with mvn jboss-as:deploy.

Change needed to vanilla JBoss configuration:

APR (Apache Portable Runtime) needs to be enabled. It should be enabled with changing:

<subsystem xmlns="urn:jboss:domain:web:1.1"
          default-virtual-server="default-host" native="false">

to:

<subsystem xmlns="urn:jboss:domain:web:1.1"
          default-virtual-server="default-host" native="true">

in standalone.xml / domain.xml

That's it. For some environments, such as ARM architecture, native connectors are not available OOB. If this is the case, you'll get an error message about missing libraries when starting up JBoss with native enabled. They can be compiled from source code however. Download link: http://www.jboss.org/jbossweb/downloads.html -> JBoss Web Native Connectors -> source tarball, compiling and installing: https://community.jboss.org/wiki/JbosswebBuildNative.

It's been reported that native libraries need to be installed separately on OSX as well (see issue #6).