blob: ed460d92c50dc7c954df3bbe8f8de64c53a318c8 [file] [log] [blame]
<div class="wiki-content maincontent"><p>If a JMS broker goes down, ActiveMQ can automatically reconnect to an available JMS broker using the <strong>failover:</strong> protocol. Not only does this automatically reconnect, it will also resume any temporary destinations, sessions, producers and most importantly consumers.</p>
<p>All of this happens silently inside the JMS client so you don't need to worry about it in your application code.</p>
<p>e.g. connecting to the URL</p>
<structured-macro ac:macro-id="103c4336-24eb-48b3-8809-5d7e5adba995" ac:name="code" ac:schema-version="1"><plain-text-body>
failover:tcp://host1:port1,tcp://host2:port2
</plain-text-body></structured-macro>
<p>For more detail see <link><page ri:content-title="Failover Transport Reference"></page></link></p></div>