That code doesn't look valid to me.

The call to receive(1000) could legitimately return null even thought there are 
messages in the queue. This would cause it to break out of the loop and process 
the batch.

Is this what you want?

You could just do the same code in a message listener surely?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135591#4135591

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135591
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to