Class JNDITransactionFactory
java.lang.Object
org.apache.ofbiz.entity.transaction.JNDITransactionFactory
- All Implemented Interfaces:
TransactionFactory
Central source for Tyrex JTA objects from JNDI
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConnection
(GenericHelperInfo helperInfo) static Connection
getJndiConnection
(String jndiName, String jndiServerName) javax.transaction.TransactionManager
javax.transaction.UserTransaction
void
shutdown()
-
Field Details
-
DS_CACHE
-
-
Constructor Details
-
JNDITransactionFactory
public JNDITransactionFactory()
-
-
Method Details
-
getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManager
in interfaceTransactionFactory
-
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()- Specified by:
getUserTransaction
in interfaceTransactionFactory
-
getTxMgrName
- Specified by:
getTxMgrName
in interfaceTransactionFactory
-
getConnection
public Connection getConnection(GenericHelperInfo helperInfo) throws SQLException, GenericEntityException - Specified by:
getConnection
in interfaceTransactionFactory
- Throws:
SQLException
GenericEntityException
-
getJndiConnection
public static Connection getJndiConnection(String jndiName, String jndiServerName) throws SQLException, GenericEntityException - Throws:
SQLException
GenericEntityException
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceTransactionFactory
-