By default, the ActiveMQ xml configuration includes the multicast discovery mechanism. The tcp transport connector advertises its self using multicast and a multicast network connector is configured to listen to the same address. In this way, all brokers that share the default multicast address will automatically network with each other.
If multicast is not required, the multicast attributes of the Transport Connector and Network Connector can be removed.

To stop advertising your connection URI on the multicast network remove the discoveryUri attribute from the <transportConnector/>:


<transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>


<transportConnector name="openwire" uri="tcp://localhost:61616" />

If you do not require any networked broker support remove the <networkConnector/> altogether. Remove

<networkConnector name="default-nc" uri="multicast://default"/>

Alternatively, provide a static networkConnector for each broker you wish to network with by replacing the the discoveryUri with the static transport connection URI of your target broker.

For more information see the Discovery Transport Reference

© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram