blob: e93e8973264a7440d6c20b0b2fdee9cfe5167c96 [file] [log] [blame]
<div class="wiki-content maincontent"><p>By default, the <link><page ri:content-title="Xml Configuration"></page><plain-text-link-body>ActiveMQ xml configuration</plain-text-link-body></link> includes the <link><page ri:content-title="Discovery"></page><plain-text-link-body>multicast discovery</plain-text-link-body></link> 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. <br clear="none"> If multicast is not required, the multicast attributes of the Transport Connector and Network Connector can be removed.</p><p>To stop advertising your connection URI on the multicast network remove the discoveryUri attribute from the &lt;transportConnector/&gt;:</p><p>replace:</p><structured-macro ac:macro-id="9c0c7c8b-3210-4afb-91ac-4eb547e20b7a" ac:name="code" ac:schema-version="1"><plain-text-body>&lt;transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/&gt;
</plain-text-body></structured-macro><p>with:</p><structured-macro ac:macro-id="095890d1-4326-467d-81ff-9f22411ce4c6" ac:name="code" ac:schema-version="1"><plain-text-body>&lt;transportConnector name="openwire" uri="tcp://localhost:61616" /&gt;
</plain-text-body></structured-macro><p>If you do not require any networked broker support remove the &lt;networkConnector/&gt; altogether. Remove</p><structured-macro ac:macro-id="9aa1c552-8664-4833-812c-6173fc7855ee" ac:name="code" ac:schema-version="1"><plain-text-body>&lt;networkConnector name="default-nc" uri="multicast://default"/&gt;
</plain-text-body></structured-macro><p>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.</p><p>For more information see the <link><page ri:content-title="Discovery Transport Reference"></page></link></p></div>