"timfox" wrote : Ah no. We only return RD_ONLY if there the tx is completely
empty, including non persistent operations, so yes I think we need to record a blank tx
branch in the journal.
Returning "read only" would be the most optimal thing to do.
You then don't record the prepare in the journal.
However, once you do that the non-peristent message should be removed from memory
or anywhere else you reference it.
If you return "read only" you won't get the commit/rollback notification.
That obviously means non-persistent messages won't get redelivered
once they've tried to be prepared in a 2PC transaction, even if the eventual
outcome of the transaction is a rollback.
That is perfectly spec compliant though since there's no guarantee
the message would get delivered in the first place, let alone redelivered after a
rollback. :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175047#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...