While going through the http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossTSRecovery
I found the following code snippet
*****************************************************
UserTransaction ut = com.arjuna.ats.jta.UserTransaction.userTransaction();
ut.begin();
Transaction txImple = TransactionManager.transactionManager().getTransaction();
txImple.enlistResource(new ExampleXAResource());
txImple.enlistResource(new ExampleXAResource());
ut.commit();
******************************************************
What I wanted to know is what is the ResourceManager here , is it ExampleXAResource() ?
Can I always call the XAResource implementing class as the ResourceManger or it sometimes acts as a proxy to the real RM as in case of the Database , where I feel the db driver contains the actual implementation of RM
Regards
Vicky
This is a fairly simple example and in this case, it's just the ExampleXAResource.