Class JBossStandaloneJTAManagerLookup

java.lang.Object
org.exoplatform.services.transaction.infinispan.JBossStandaloneJTAManagerLookup
All Implemented Interfaces:
org.infinispan.transaction.lookup.TransactionManagerLookup

public class JBossStandaloneJTAManagerLookup extends Object implements org.infinispan.transaction.lookup.TransactionManagerLookup
This class is used to replace the one provided by default in ISPN 5.0 since it implicitly requires that ISPN is initialized before the rest which is actually the exact opposite. Indeed Arjuna accessors are initialized in the init method which is called at ISPN initialization but we expect to get the TransactionManager from it through the TransactionService before initializing the JCR so before initializing ISPN. The code below is a simple copy/paste of the code of JBossStandaloneJTAManagerLookup of ISPN 4.
Version:
$Id$
Author:
Nicolas Filotto
  • Constructor Details

    • JBossStandaloneJTAManagerLookup

      public JBossStandaloneJTAManagerLookup()
  • Method Details

    • getTransactionManager

      public javax.transaction.TransactionManager getTransactionManager() throws Exception
      Specified by:
      getTransactionManager in interface org.infinispan.transaction.lookup.TransactionManagerLookup
      Throws:
      Exception
    • getUserTransaction

      public javax.transaction.UserTransaction getUserTransaction() throws Exception
      Throws:
      Exception