Sorry about opening up an old thread, by I've got all the same fustrations as
Jecsiac with this issue.

How can I write a deterministic system to return a message if it exists on a
queue, or null if it doesn't exist.  How long should I wait, a second, a
minute, an hour?  What if I have a million messages - how long is long
enough.   And if then I have no messages on my queue I've wasted lots of
time waiting for a message that didn't exist.

Surely receiveNoWait is the correct way to go - and the ActiveMQ
implementation is wrong.  As well as WebSphereMQ we also use SwiftMQ as a
queue provider, and things behave like this.

James - which other providers work the way ActiveMQ does?

TIA
Ian
-- 
View this message in context: 
http://www.nabble.com/Problem-with-Selector-tp19157015p21496474.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to