Basically I want to club some of my custom DB operations with the Slide Tx.
For e.g.
Get Slide's UserTransaction
Get Custom DB Connection
Perform Slide Operations
Perform Custom Operations
Commit Slide's UserTx
Commit Custom DB Connection
In this scenario, if the commit of the custom DB operations fails, there is
no way to rollback Slide's UserTx (and vice-versa if I were to reverse the
order of the commits). The problem is that of a 2PC. Till Slide supports
plugging external TxMgr, is there a workaround to achieve this use case?
I defined a XADataSource in my J2EE server. It deployed fine. Is there a way
to access XAResource on this XADataSource inside the J2EE environment? I am
looking at the following:
Get Slide's UserTransaction
Get Custom DB XAResource
Perform Slide Operations
Perform Custom Operations
Custom XAResource.prepare()
if (above step returns success)
{
try {
Commit Slide's UserTx
Commit Custom DB Connection
}
catch (Exception e)
{
Rollback Custom DB Connection
Rollback Slide's UserTx
}
}
else
{
Rollback Slide's UserTx
Rollback Custom DB Connection
}
I am unable to obtain XAResource on my XADataSource connection. The
container is returning its Wrapper DataSource which has no methods for
getting an XAConnection. Has anyone had a similar requirement? Please help.
Regards,
Ritu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]