blob: 8d7533957a1f31267a21c352332037906c8fea0c [file] [log] [blame]
<div class="wiki-content maincontent">
<p>You can specify a list of URLs to connect to (for example if you have message brokers running on a number of machines). To specify a list of URLs, use a comma separated list of URLs with a prefix of list:. e.g.</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">
list:tcp://localhost:61699,tcp://localhost:61617,tcp://localhost:61698
</pre>
</div></div>
<p>The JMS client will then try and connect to each one in turn, in a random order until one is connected. If they all fail to connect a sleep occurs and then this loop is retried a number of times until either a connection can be established or an exception is thrown. For more detail see <a shape="rect" href="configuring-transports.html">Configuring Transports</a></p></div>