2 Replies Latest reply on Sep 24, 2015 3:41 AM by polyzois

    stomp-websocket example with WildFly 9

    alexander.winizki

      Hi,

      did anybody have success running the stomp-websocket example from the 2.4.0-Final download package against WildFly 9.0.0?

       

      For me it works with WildFly 8.2.2, but not with 9.0.0.

       

      Instead of posting any details about how I did it wrong, I just ask if anybody succeeded to do it right

      and describe it step-by-step.

       

      Thanks!

        • 1. Re: stomp-websocket example with WildFly 9
          polyzois

          Did you need to touch any WildFly configuration to make STOMP work in v 8.2.2?

          • 2. Re: stomp-websocket example with WildFly 9
            polyzois

            I managed to get that example running on Wildly 10.0.CR1. I did the following:

             

            • Add a application user guest/guest (./add-user.sh)
            • Add topic called chat (jobss-cli.sh  jms-topic add --entries=/topic/chat --topic-address=chat )
            • Added an Acceptor with protocols STOMP and port 61613
            • Changed chat html url to point to ws://localhost61613

             

            acceptor looks like below

            <subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">

            <server name="default">...

            <acceptor name="stomp-acceptor" factory-class="org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptorFactory">

               <param name="protocols" value="STOMP"/>

               <param name="port" value="61613"/>

            </acceptor>

            ...

            </server>

            </subsystem>