Package com.arjuna.ats.jta
Class TransactionManager
- java.lang.Object
-
- com.arjuna.ats.jta.TransactionManager
-
public class TransactionManager extends Object
-
-
Constructor Summary
Constructors Constructor Description TransactionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jakarta.transaction.TransactionManagertransactionManager()Retrieve the singleton transaction manager reference.static jakarta.transaction.TransactionManagertransactionManager(InitialContext ctx)Retrieve a reference to the transaction manager from the passed in JNDI initial context.
-
-
-
Method Detail
-
transactionManager
public static jakarta.transaction.TransactionManager transactionManager(InitialContext ctx)
Retrieve a reference to the transaction manager from the passed in JNDI initial context.- Parameters:
ctx- The JNDI initial context to lookup the Transaction Manager reference from.- Returns:
- The transaction manager bound to the appropriate JNDI context. Returns null if the transaction manager cannot be found.
-
transactionManager
public static jakarta.transaction.TransactionManager transactionManager()
Retrieve the singleton transaction manager reference.- Returns:
- The singleton transaction manager. Can return null if the instantiation failed.
-
-