[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: receiveNoWait vs. receive(1L)
timfox
do-not-reply at jboss.com
Mon May 21 04:58:34 EDT 2007
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#4047150
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047150
More information about the jboss-dev-forums
mailing list