<div>I have a program that polls every X seconds and tries to process N messages. For some reason, basicGet() will return null even if there are messages still in the queue.</div>
<div> </div>
<div>For example:</div>
<div> </div>
<div>- I send 100 messages to a queue</div>
<div>- I have a Thread that polls every 3 seconds and processes 30 messages at a time.</div>
<div> </div>
<div>Doing so will result in processing 30 messages, 30 messages, 7 messages and then leaving 3 messages in the queue. I can't figure out why those 3 messages don't get processed. If I rerun my sample program, the last three messages are processed.</div>
<div> </div>
<div>Attached is my sample code using the Java client library</div>
<div> </div>
<div>Thank you</div>
<div> </div>
<div>Kevin Conaway</div>