JMS HTTP Example

To run the example, simply type mvn verify from this directory, 
or mvn -PnoServer verify if you want to start and create the server manually.

This example shows you how to configure ActiveMQ Artemis to use the HTTP protocol as its transport layer.

ActiveMQ Artemis supports a variety of network protocols to be its underlying transport without any specific code change.

This example is taken from the queue example without any code change. By changing the configuration file, one can get ActiveMQ Artemis working with HTTP transport.

All you need to do is open the server0/broker.xml and enable HTTP like the following

      
      <connector name="netty-connector">tcp://localhost:8080?httpEnabled=true</connector>

      <!-- Acceptors -->

      <acceptor name="netty-acceptor">tcp://localhost:8080 </acceptor>