<div dir="ltr">&gt;<span style="font-family:arial,sans-serif;font-size:13px">Also the spring integration...</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">If you are using Spring-AMQP, you supply the list of host:port using the &#39;addresses&#39; attribute on the CachingConnectionFactory...</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><pre class="" style="line-height:1.2;color:black;font-size:13px;padding:6px 10px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;clear:both;overflow:auto">
<span class="" style="color:rgb(63,127,127)">&lt;rabbit:connection-factory</span>
    <span class="" style="color:rgb(127,0,127)">id</span>=<span class="" style="color:rgb(42,0,255)">&quot;connectionFactory&quot;</span> <span class="" style="color:rgb(127,0,127)">addresses</span>=<span class="" style="color:rgb(42,0,255)">&quot;host1:5672,host2:5672&quot;</span><span class="" style="color:rgb(63,127,127)">/&gt;</span></pre>
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><a href="http://docs.spring.io/spring-amqp/reference/html/amqp.html#d4e209">http://docs.spring.io/spring-amqp/reference/html/amqp.html#d4e209</a><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 1, 2013 at 10:37 AM, PATAR, SAGAR <span dir="ltr">&lt;<a href="mailto:sp345s@att.com" target="_blank">sp345s@att.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Michael ..<br>
<br>
Looks like mirrored queues will work for us ..<br>
I was wondering if the rabbitmq-java-client--3.1.5 has the capability to seamlessly connect to the cluster in case of failovers to Slaves or masters ?? or do we have to wrap the reconnect logic ..<br>
<br>
For multiple hosts and port .. can we use the below amqp URL ...<br>
<br>
amqp://username1:password1@hostName1:portNumber1,hostname2:portNumber2,hostname3:portname4/virtualHost<br>
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �__________________________________________________________<br>
<br>
ConnectionFactory factory = new ConnectionFactory();<br>
�factory.setUri(&quot;amqp://username1:password1@hostName1:portNumber1,hostname2:portNumber2,hostname3:portname4/virtualHost&quot;);<br>
�Connection conn = factory.newConnection();<br>
�Channel channel = conn.createChannel().,.<br>
<br>
Also appreciate if we can get some links to java client tutorial connecting to clustered env �, Also the spring integration ...<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com">rabbitmq-discuss-bounces@lists.rabbitmq.com</a> [mailto:<a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com">rabbitmq-discuss-bounces@lists.rabbitmq.com</a>] On Behalf Of Michael Klishin<br>

Sent: Monday, September 30, 2013 11:42 AM<br>
To: Discussions about RabbitMQ<br>
Subject: Re: [rabbitmq-discuss] configure external data store(like database) for message durability in rabbitmq<br>
<br>
On sep 30, 2013, at 7:37 p.m., &quot;PATAR, SAGAR&quot; &lt;<a href="mailto:sp345s@att.com">sp345s@att.com</a>&gt; wrote:<br>
<br>
&gt; My assumption is when we have a file store for message durability and if one of the node goes down in the cluster the messages not been consumed yet must have been stored in that node file system and will stay till the node is back up ... those message will not be accessible by other active nodes in the cluster because the file store for that node is not accessible to other nodes....and the messages will be delayed ...<br>

&gt;<br>
&gt; I am not sure how this scenario is handled ...seems to be a common problem<br>
<br>
Using mirrored queues or asynchronous replication (using Shovel or Federation plugins).<br>
<br>
See<br>
<br>
<a href="http://www.rabbitmq.com/distributed.html" target="_blank">http://www.rabbitmq.com/distributed.html</a><br>
<a href="http://www.rabbitmq.com/clustering.html" target="_blank">http://www.rabbitmq.com/clustering.html</a><br>
<a href="http://www.rabbitmq.com/ha.html" target="_blank">http://www.rabbitmq.com/ha.html</a><br>
<br>
MK<br>
<br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>