No, this is not a bug.
receiveNoWait() only will return messages if they are "available" (see JMS
spec). What available means is not defined.
In our case "available" means in the client side buffer. So there is no
guarantee that just because a message is in the queue it will be in the client side
buffer. (This seems to be how most other providers implement it too).
IMHO receiveNoWait is a pretty thing to do at the best of times and you should avoid it if
possible.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047150#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...