[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - bug in session.rollback()
ataylor
do-not-reply at jboss.com
Fri Mar 27 07:41:36 EDT 2009
Ive added a test to ClientCommitRollbackTest to show this (commented out).
basically, if you have a session with 2 consumers receiving from 2 different queues, receive x messages and rollback. All the rolled back messages end up in the sane queue.
This is because of getRefsOperation(final Transaction tx) in queueimpl. the first time this is called it creates a RefsOperation it and adds it to the tx. the second time it uses the cached one on the tx, but this could be for a different queue. i.e. if you have
| queueA.getRefsOperation( tx);
| queueB.getRefsOperation( tx);
|
the second line would return the refsOperation for queueA
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221518#4221518
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221518
More information about the jboss-dev-forums
mailing list