[jboss-user] [JBoss Messaging] - Re: Orderer redelivery of messages

timfox do-not-reply at jboss.com
Sat Jun 2 06:01:54 EDT 2007


In the general case ordered redelivery is very hard to guarantee.

Consider a queue with several transactional sessions and consumers consuming from it.

The consumers are consuming at different rates, and every so often they rollback (or fail). When they rollback, their unacknowledged messages go back on the queue.

The order they go back on the queue is determined by the order in which they rollback (or fail). So you can see its not deterministic.

For the special case of having only one session and consumer on a particular queue, then, yes, JBoss Messaging will try to redeliver the messages in the same order as they were first delivered, but we don't provide any hard guarantees of this over and above the JMS spec.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050657



More information about the jboss-user mailing list