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

egomet do-not-reply at jboss.com
Fri Jun 1 04:52:16 EDT 2007


Hi guys!

We have an application in production with a requirement about the order of messages sent to queues: the queue must maintain the delevery order also in case of failure and redelivery. The version of JBoss that we are using (3.x) did not provide the "ordered redelivery" of messages: if the client sends the messages "1", "2" and "3" in this sequence, and the message "2" fails, we are not assured that the container tries to redeliver the message "2" the specified number of times (10 by default) and then picks the message "3" up. The behavior that we experimented is that 
the redelivered message is put in the queue without maintaining the initial order, so it is possible that the receiver will pick up the message "3" before the redelivered message "2".

We have solved the problem by writing our own JMSContainerInvoker, configured as a "Singleton Message Driven Bean" and deployed in the JBoss server.

My question is: "does JBoss Messaging 1.2X provide the ordered redelivery of incoming messages?"

I made some test by using JBoss 4.0.5GA and JBoss Messaging 1.2.0.sp1, without the custom invoker, configuring the receiving MDB as a Singleton: it seems to work (i.e. to implement the ordered redelivery), but I'm still looking in the source code for confirmation. 

Could you confirm the observed behavior (ordered redelivery implemented) or maybe provide a counter-example that shows a case in which redelivery does not maintaing the arrival order of messeges?

Thank you for the help.
Marco


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

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



More information about the jboss-user mailing list