[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Session recovery on rollback

timfox do-not-reply at jboss.com
Fri Jul 14 09:47:39 EDT 2006


Point taken, the timing isn't important, but my understanding is the order is.

So if I receive messages A, B, C then rollback I should receive A, B, C.

The only exception to this if some of those messages have since expired or higher priority messages have arrived, in all other cases the order must be preserved. Is this correct?

In JBossMQ SpySession there is this comment:

"// Restart the delivery sequence including all unacknowledged messages
         // that had
         // been previously delivered. Redelivered messages do not have to be
         // delivered
         // in exactly their original delivery order."

Which seems to conflict with what the spec says.. although I guess I'm misinterpreting it wrong, although not sure where :(  I would never make a good lawyer...

Perhaps I am confusing the order of receipt of the messages with the order of delivery of the messages.

E.g.

If I received A, B, C then rolled back and then received

A, D, B, C, E

then the delivery order is still preserved (A, B, C) it's just they're interleaved with D and E.
??

JMS1.1 4.4.11:

"In effect, the session?s series of delivered messages
is reset to the point after its last acknowledged message. The messages it now
delivers may be different from those that were originally delivered due to
message expiration and the arrival of higher-priority messages."


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

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



More information about the jboss-dev-forums mailing list