Hi,<div><br></div><div>I saw a weird behavior when trying to use the same channel for my consumer and producer in a test.</div><div><br></div><div><b>Test</b><br clear="all"><div><br></div><div>1) The test creates a queue</div>
<div>2) It registers a consumer using basicConsume</div><div>3) It enqueues about 500 messages</div><div>4) Waits untill all the messages are consumed.</div><div><br></div><div>When i run the above test ~ the consumer doesn&#39;t get all the 500 messages..It stops somewhere halfway...</div>
<div>I tried repeating the test, it always stopped at some point before consumption of all messages...somewhere over the halfway mark.</div><div><br></div><div>I was wondering if it was something to do with me using the same channel to produce and consume, and tried switching the producer to use a different channel,�</div>
<div>and boy it started working right - all 500 messages got consumed.</div><div><br></div><div>I was wondering if someone could explain this behavior. I&#39;m using the java client and the latest 2.6.0 build of the server.</div>
<div><br></div><div><b>Why was i trying to use the same channel for producer and consumer?</b></div><div><br></div><div>It wasn&#39;t intentional...i just bumped into this issue by a happy mistake.</div><div><br></div><div>
<br></div><div>Thanks for your help.</div>-- <br>-Praveen<br>
</div>