Thank you michael. I found what the issue was...I was setting the fields mandatory and immediate as true when i publish messages. This was causing me to lose messages when the consumer wasn't subscribed to the queue.<div>
<br></div><div><br><div class="gmail_quote">On Fri, Sep 9, 2011 at 9:00 PM, Michael Klishin <span dir="ltr"><<a href="mailto:michael.s.klishin@gmail.com">michael.s.klishin@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 class="im">2011/9/10 Praveen M <span dir="ltr"><<a href="mailto:lefthandmagic@gmail.com" target="_blank">lefthandmagic@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was wondering if someone could explain this behavior. I'm using the java client and the latest 2.6.0 build of the server.</blockquote></div><br></div>It is perfectly fine to use the same channel for consuming and publishing messages. I cannot tell without seeing your code but what you are observing is likely to be the blocking behavior of QueueingConsumer.<br clear="all">
<div><br></div><div>There is one downside to sharing channels this way: handling channel-level exceptions may get trickier/require you to keep more state around. </div>-- <br><font color="#888888">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><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>-Praveen<br>
</div>