Class JNDIFactory
java.lang.Object
org.ofbiz.core.entity.transaction.JNDIFactory
- All Implemented Interfaces:
TransactionFactoryInterface
Central source for Tyrex JTA objects from JNDI
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static Map<String,ConnectionTracker> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String helperName) javax.transaction.TransactionManagerjavax.transaction.UserTransactionvoidremoveDatasource(String helperName) Removes a datasource, and if necessary, shuts it down
-
Field Details
-
module
-
dsCache
-
trackerCache
-
-
Constructor Details
-
JNDIFactory
public JNDIFactory()
-
-
Method Details
-
getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManagerin interfaceTransactionFactoryInterface
-
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()- Specified by:
getUserTransactionin interfaceTransactionFactoryInterface
-
getTxMgrName
- Specified by:
getTxMgrNamein interfaceTransactionFactoryInterface
-
getConnection
- Specified by:
getConnectionin interfaceTransactionFactoryInterface- Throws:
SQLExceptionGenericEntityException
-
removeDatasource
Description copied from interface:TransactionFactoryInterfaceRemoves a datasource, and if necessary, shuts it down- Specified by:
removeDatasourcein interfaceTransactionFactoryInterface- Parameters:
helperName- The name of the datasource to remove
-