1 Reply Latest reply on Jun 19, 2006 3:38 AM by marklittle

    What is ResourceManager in this example ?

    vickyk

      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