org.ofbiz.entity.transaction
Class JNDIFactory
java.lang.Object
org.ofbiz.entity.transaction.JNDIFactory
- All Implemented Interfaces:
- TransactionFactoryInterface
public class JNDIFactory
- extends java.lang.Object
- implements TransactionFactoryInterface
Central source for Tyrex JTA objects from JNDI
Field Summary |
protected static java.util.Map<java.lang.String,javax.sql.DataSource> |
dsCache
|
static java.lang.String |
module
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final java.lang.String module
dsCache
protected static java.util.Map<java.lang.String,javax.sql.DataSource> dsCache
JNDIFactory
public JNDIFactory()
getTransactionManager
public TransactionManager getTransactionManager()
- Specified by:
getTransactionManager
in interface TransactionFactoryInterface
getUserTransaction
public UserTransaction getUserTransaction()
- Specified by:
getUserTransaction
in interface TransactionFactoryInterface
getTxMgrName
public java.lang.String getTxMgrName()
- Specified by:
getTxMgrName
in interface TransactionFactoryInterface
getConnection
public java.sql.Connection getConnection(java.lang.String helperName)
throws java.sql.SQLException,
GenericEntityException
- Specified by:
getConnection
in interface TransactionFactoryInterface
- 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 interface TransactionFactoryInterface