[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: XARecovery - MQ/Messaging merge
timfox
do-not-reply at jboss.com
Tue Sep 5 10:35:09 EDT 2006
Hi Madhu-
A few comments:
1. We need to make sure that any tests for the recovery functionality live in the functional test suite and don't rely on ejbs, mdbs or any other non jms stuff.
The tests should manipulate the XAConnnection/XASession/XAResource, enlist them in global transactions and test them this way.
You may need to add something to simulate a server "crash".
2. It's my undertstanding that the transaction manager can call XAResource.recover() at any time, not just after server startup.
So when it calls recover() we need to do the following sequence of actions:
a) Look in the database for any transactions in the prepared state. If there are any, create transaction objects corresponding to these rows, and add them to the in memory transaction repository in the prepared state (The prepared transactions may already be in the in-memory transaction repository so be careful to avoid duplicates)
b) Return this list to the transaction manager
c) Transaction manager will then call commit on those transactions.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969482#3969482
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969482
More information about the jboss-dev-forums
mailing list