<div dir="ltr">MK,<div><br></div><div>In the event that a queue was deleted, the consumer callback "handleCancel" is invoke. �Are these the steps I need to perform inside the "handleCancel"?</div><div><br>
</div><div>1. �Declare the queue</div><div>2. �Create new connection and channel</div><div>3. �Issue basicConsume service again</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 16, 2014 at 2:36 PM, cw storm <span dir="ltr"><<a href="mailto:cwstorm@gmail.com" target="_blank">cwstorm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, I perform close connections via UI but since I have handle the shutdown signal, it's going to create new connection/channel which I don't want to do during development. �I thought I could maybe spice up my logic. �If it's a close connection via UI, then do this...else...reconnect. �Maybe I'm thinking too much and my new changes will be in effect when I force or rabbitmqctl.<div>

<br></div><div>Thanks again MK. �Moving right along....</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, Feb 16, 2014 at 2:27 PM, Michael Klishin <span dir="ltr"><<a href="mailto:michael.s.klishin@gmail.com" target="_blank">michael.s.klishin@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-02-16 23:18 GMT+04:00 cw storm <span dir="ltr"><<a href="mailto:cwstorm@gmail.com" target="_blank">cwstorm@gmail.com</a>></span>:<div>

<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

However, during development, I want to perform a force close connection via the console so that I can do some debugging or test out the new changes in my code. �Everything I have initiated is in memory and I want to execute the java service again to load the new changes into memory. �Because I have added the listener to the connection, it'll re-establish the connection/channel. �Unless I reload the java package which has the service during startup.</blockquote>



</div></div><br>You can close connections via management UI or rabbitmqctl and it will trigger a shutdown. That's how recovery</div><div class="gmail_extra">is tested (besides automated tests) for all JVM-based clients that support recovery.<div>

<br>

<br clear="all"><div><br></div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>




</div></div></div>
<br></div></div><div class="">_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">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>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>