Class TransactionManagerLocator


  • public class TransactionManagerLocator
    extends Object
    Locate a Transaction Manager
    Since:
    May 13, 2007
    Version:
    $Revision$
    Author:
    Anil.Saldhana@redhat.com
    • Constructor Detail

      • TransactionManagerLocator

        public TransactionManagerLocator()
    • Method Detail

      • getTM

        public TransactionManager getTM​(String jndiName)
                                 throws NamingException
        Get the TransactionManager provided a JNDI Name for the Transaction Manager
        Note: If the TM is not bound to JNDI, an attempt is made to obtain the JBoss TxManager instance via reflection
        Parameters:
        jndiName -
        Returns:
        Throws:
        NamingException
      • setTransactionManager

        public static void setTransactionManager​(TransactionManager transactionManager)