Connect to ActiveMQ from a different machine

IMPORTANT: Bitnami Native Installers do not modify the firewall configuration of your computer, therefore the ActiveMQ ports could be open which is a significant security risk. You are strongly advised to close the ActiveMQ ports (refer to the FAQ for more information on this).

By default, all ActiveMQ transport connectors are enabled. To disable one of them, edit the installdir/activemq/conf/activemq.xml file, and remove the line related to that connector:

   <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
   <transportConnector name="openwire" uri="tcp://;wireFormat.maxFrameSize=104857600"/>
   <transportConnector name="amqp" uri="amqp://;wireFormat.maxFrameSize=104857600"/>
   <transportConnector name="stomp" uri="stomp://;wireFormat.maxFrameSize=104857600"/>
   <transportConnector name="mqtt" uri="mqtt://;wireFormat.maxFrameSize=104857600"/>
   <transportConnector name="ws" uri="ws://;wireFormat.maxFrameSize=104857600"/>

In case of changes to the configuration file, restart the server to have the changes take effect:

$ sudo installdir/ restart activemq

To test the server connectivity, run one of the ActiveMQ examples from a different machine using these instructions.

Last modification October 1, 2018