[jboss-user] [JBoss Messaging] - Re: Stranges with message reading from queue
do-not-reply at jboss.com
Wed Jan 21 21:40:55 EST 2009
Hi, the receiveNoWait means it doesn't wait until a message is received. You can't expect it will get something every time you called it. If you can get a message by receive(2000), try to replace it with sleeping 2000 ms and call receiveNoWait(). I bet you will get the messages.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203835#4203835
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203835
More information about the jboss-user