If you are using Spring, the latest version (1.1.1 IIRC) is allowing you to specify several servers, and it will handle the reconnect should one of the connections go down. We are using this in our production env and it works very nicely.<br>
<br>Cheers<br>Maze<br><br><br><div class="gmail_quote">On Mon, Sep 24, 2012 at 10:57 AM, Tim Watson <span dir="ltr">&lt;<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Alex,<br>
<br>
You&#39;ll need to handle reconnecting explicitly in the client(s) yourself. What HA does is ensure that any time you connect to a node on which a queue is mirrored, you get a consistent view of the queue and obviously it deals with failover when a node dies.<br>

<br>
HTH<span class="HOEnZb"><font color="#888888"><br>
<br>
Tim</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 09/24/2012 08:41 AM, Alex Shneyderman wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all!<br>
<br>
<br>
There is something I do not really understand about how client is<br>
taking advantage of the HA features of RabbitMQ. So, I setup two<br>
servers. And I have a queue that is mirrored. My client connects to<br>
one server. (I can give it an array of addresses but the documentation<br>
says it will connect to the first server that is not down). So say I<br>
have that client talking to server1 for a while. Server1 goes down, is<br>
there a way for the client to re-establish connection to server2 while<br>
server1 is being fixed up? I mean I am pretty sure client can I am<br>
just not sure if this is the logic that is already implemented on the<br>
client that is provided by rabbit (Java in my case, but I would also<br>
be interested to know if erlang client works automagically) or is this<br>
something I have to do on my own (I guess I could listen to shutdown<br>
event and reconnect manually)?<br>
<br>
Cheers,<br>
Alex.<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>