Class JNDITransactionFactory
- java.lang.Object
-
- org.apache.ofbiz.entity.transaction.JNDITransactionFactory
-
- All Implemented Interfaces:
TransactionFactory
public class JNDITransactionFactory extends java.lang.Object implements TransactionFactory
Central source for Tyrex JTA objects from JNDI
-
-
Constructor Summary
Constructors Constructor Description JNDITransactionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Connection
getConnection(GenericHelperInfo helperInfo)
static java.sql.Connection
getJndiConnection(java.lang.String jndiName, java.lang.String jndiServerName)
javax.transaction.TransactionManager
getTransactionManager()
java.lang.String
getTxMgrName()
javax.transaction.UserTransaction
getUserTransaction()
void
shutdown()
-
-
-
Method Detail
-
getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()
- Specified by:
getTransactionManager
in interfaceTransactionFactory
-
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()
- Specified by:
getUserTransaction
in interfaceTransactionFactory
-
getTxMgrName
public java.lang.String getTxMgrName()
- Specified by:
getTxMgrName
in interfaceTransactionFactory
-
getConnection
public java.sql.Connection getConnection(GenericHelperInfo helperInfo) throws java.sql.SQLException, GenericEntityException
- Specified by:
getConnection
in interfaceTransactionFactory
- Throws:
java.sql.SQLException
GenericEntityException
-
getJndiConnection
public static java.sql.Connection getJndiConnection(java.lang.String jndiName, java.lang.String jndiServerName) throws java.sql.SQLException, GenericEntityException
- Throws:
java.sql.SQLException
GenericEntityException
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceTransactionFactory
-
-