Package com.arjuna.ats.jta.utils
Class JNDIManager
java.lang.Object
com.arjuna.ats.jta.utils.JNDIManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Bind the underlying JTA implementations to the appropriate JNDI contexts.static void
Bind the underlying JTA implementations to the appropriate JNDI contexts.static void
Bind the currently configured transaction manager implementation to the default JNDI context.static void
bindJTATransactionManagerImplementation
(InitialContext initialContext) Bind the currently configured transaction manager implementation to the JNDI context passed in.static void
Bind the currently configured TransactionSynchronizationRegistry implementation to the default JNDI context.static void
Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in JNDI context.static void
Bind the currently configured user transaction implementation to the default JNDI context.static void
bindJTAUserTransactionImplementation
(InitialContext initialContext) Bind the currently configured user transaction implementation to the passed in JNDI context.static void
Unbind the transaction manager from the default JNDI context.static void
unbindJTATransactionManagerImplementation
(InitialContext initialContext) Unbind the transaction manager from the provided JNDI context.static void
Unbind the TSR from the default JNDI context.static void
Unbind the TSR from the provided JNDI context.
-
Constructor Details
-
JNDIManager
public JNDIManager()
-
-
Method Details
-
bindJTAImplementations
Bind the underlying JTA implementations to the appropriate JNDI contexts.- Throws:
NamingException
-
bindJTAImplementation
Bind the underlying JTA implementations to the appropriate JNDI contexts.- Throws:
NamingException
-
bindJTATransactionManagerImplementation
Bind the currently configured transaction manager implementation to the default JNDI context.- Throws:
NamingException
-
unbindJTATransactionManagerImplementation
Unbind the transaction manager from the default JNDI context.- Throws:
NamingException
-
bindJTATransactionManagerImplementation
public static void bindJTATransactionManagerImplementation(InitialContext initialContext) throws NamingException Bind the currently configured transaction manager implementation to the JNDI context passed in.- Parameters:
initialContext
-- Throws:
NamingException
-
unbindJTATransactionManagerImplementation
public static void unbindJTATransactionManagerImplementation(InitialContext initialContext) throws NamingException Unbind the transaction manager from the provided JNDI context.- Parameters:
initialContext
-- Throws:
NamingException
-
bindJTAUserTransactionImplementation
Bind the currently configured user transaction implementation to the default JNDI context.- Throws:
NamingException
-
bindJTAUserTransactionImplementation
public static void bindJTAUserTransactionImplementation(InitialContext initialContext) throws NamingException Bind the currently configured user transaction implementation to the passed in JNDI context.- Parameters:
initialContext
-- Throws:
NamingException
-
bindJTATransactionSynchronizationRegistryImplementation
Bind the currently configured TransactionSynchronizationRegistry implementation to the default JNDI context.- Throws:
NamingException
-
unbindJTATransactionSynchronizationRegistryImplementation
public static void unbindJTATransactionSynchronizationRegistryImplementation() throws NamingExceptionUnbind the TSR from the default JNDI context.- Throws:
NamingException
-
bindJTATransactionSynchronizationRegistryImplementation
public static void bindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws NamingException Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in JNDI context.- Parameters:
initialContext
-- Throws:
NamingException
-
unbindJTATransactionSynchronizationRegistryImplementation
public static void unbindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws NamingException Unbind the TSR from the provided JNDI context.- Parameters:
initialContext
-- Throws:
NamingException
-