[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: XARecovery - MQ/Messaging merge
mskonda
do-not-reply at jboss.com
Tue Sep 5 11:19:09 EDT 2006
"timfox" wrote :
| The JBoss TS Recovery manager lives on the client side. How does it get hold of the list of XAResources to recover?
|
You have to pass a parameter to let the JBossTS know who's the provider.
anonymous wrote :
| Does it use ServerConnectionEndpoint::getPreparedTransactions()?
|
yes, the code is modified to get the preparedTransactions (you can see from the trace I've posted)
anonymous wrote :
| When you are creating the Transaction instances from the database and adding to the transation repositiry are you sure you are populating their internal transaction callbacks?
|
This is something I asked team to look at my earlier JBMESSAGING-407 issue. I short, yes, when a transaction is created (resurrected), I associate with a TransactionCallback. See below:
public void associateCallbackToPreparedTx(Transaction tx)
| {
| TransactionCallback callback = (TransactionCallback) tx.getKeyedCallback(this);
|
| if (callback == null)
| {
| callback = new TransactionCallback(tx);
|
| tx.addKeyedCallback(callback, this);
| }
| }
|
*I am adding only a TransactionCallback! I didn't get through much about memory callbacks and others.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969499#3969499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969499
More information about the jboss-dev-forums
mailing list