<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for all of the help. &nbsp;I got it working!<div><br></div><div>I had no luck with calling basicCancel() and then waiting for the handleCancelOK() method to be called. &nbsp;I realized after stepping through the source with a debugger that a Channel disassociates the Consumer when basicCancel() is called:</div><div><br></div><div>ChannelN.java: line 645:</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Consumer callback = _consumers.remove(consumerTag);</div><div><br></div></div><div>The only way that I knew I could reestablish this association was by calling Channel.basicConsume(). &nbsp;Unfortunately this didn't work. &nbsp;Messages after that point were never delivered. &nbsp;</div><div><br></div><div>I finally used the close and re-open the Channel approach. &nbsp;This worked as expected.</div><div><br></div><div>If anyone would like to see my solution code, let me know.</div><div><br></div><div>Thanks.</div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-size: medium;"><br></span></span></font></div><div><div><span class="Apple-style-span" style="font-size: 12px; ">-John</span></div><div><br class="webkit-block-placeholder"></div><div><div>On Feb 26, 2010, at 7:50 PM, Tony Garnock-Jones wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Matthias Radestock wrote:<br><blockquote type="cite">1) send basic.cancel<br></blockquote><blockquote type="cite">2) wait for basic.cancel-ok<br></blockquote><blockquote type="cite">The hook for step 2 is provided by overriding the handleCancelOk method <br></blockquote><blockquote type="cite">on the consumer class.<br></blockquote><br>Note also that basicCancel() doesn't return to the caller until the<br>basic.cancel-ok has been received and completely processed by the client<br>library and the Consumer object.<br><br>Regards,<br> &nbsp;Tony<br></div></blockquote></div><br></div></body></html>