Websockets with HornetQ in JBoss Wildfly

As an update to my previous post “Connecting Websockets with HornetQ in JBoss EAP 6.1” here are the changes you need to do to get the example running in (Beta1=.

First of all you need to setup an application user named “guest” with password “guest_12345!” and roles “guest”. This part was necessary in JBoss EAP 6.1 too.

You need to go through all the steps described in the previous post which describes the changes in the JBoss configuration file. The only difference is this line:

<param key="protocol" value="STOMP_WS"/>

which was stomp_ws in lowercase before. Additionally you need to update the file

wildfly/modules/system/layers/base/org/ hornetq/protocol/stomp/main/module.xml

with


...
<dependencies>
<!-- required to load HornetQ protocol SPI -->
<module name="org.hornetq"/>
<module name="org.jboss.netty"/>
</dependencies>
...

The JAVA code needs some updates for the required libraries, you find that at GitHub https://github.com/kifj/stomp-test/tree/wildfly.

Tagged : , , ,

Leave a Reply