Also keep in mind that a queue_declare always returns the queue name, even if it was generated by the server. So provided your queue is not auto-deleted then you could keep that name somewhere and use it for your new consumer<div>
<br></div><div>-Alvaro<br><br><div class="gmail_quote">On Mon, Sep 10, 2012 at 8:14 PM, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 10/09/12 19:00, Francesco Mazzoli wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
At Mon, 10 Sep 2012 23:17:20 +0530, Bhaskar teja wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How can we connect to the old dynamic queue so that we dont loose<br>
any messages in that queue?<br>
</blockquote>
<br>
In AMQP you can use an empty queue name to connect to the last<br>
created queue - if you're not creating any other queues in the<br>
meantime that will help.<br>
</blockquote>
<br></div>
That "most recently declared queue" feature of AMQP operates per<br>
channel, which isn't going to help the OP when restarting their consumers.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you can give a name to a queue, I'd do it.<br>
</blockquote>
<br></div>
Exactly.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dynamic queue are generally used for disposable queue (e.g. queue<br>
with auto_delete).<br>
</blockquote>
<br></div>
'exclusive', actually. auto_delete is typically employed in the context of having multiple consumers of a queue. That implies they all need to know the queue's name, which therefore usually won't be server-generated.<span class="HOEnZb"><font color="#888888"><br>
<br>
Matthias.</font></span><div class="HOEnZb"><div class="h5"><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></div>