[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - XARecoveryt with only non persistent messages

adrian@jboss.org do-not-reply at jboss.com
Fri May 30 12:21:01 EDT 2008


WRT JBossMQ bug http://jira.jboss.com/jira/browse/JBAS-5571

I don't know if you have the same issue? I just wanted to check.

JBossMQ has an optimization where if all messages in the transaction are non persistent
it doesn't write the XID to the log but does XA_OK from prepare() 
which causes crash recovery problems since it doesn't return the XID from XAResource.recover() as the TM expects.

The obvious optimization is to return READ_ONLY if all messages are non persistent
(since no changes will go in the log) then you don't have a problem. 
But for JBossMQ it's hard to do that change, so I had to disable this optimization
for XA transactions. :-(

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

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



More information about the jboss-dev-forums mailing list