org.ofbiz.entity.transaction
Class JNDIFactory

java.lang.Object
  extended by 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
           
 
Constructor Summary
JNDIFactory()
           
 
Method Summary
 java.sql.Connection getConnection(java.lang.String helperName)
           
static java.sql.Connection getJndiConnection(java.lang.String jndiName, java.lang.String jndiServerName)
           
 TransactionManager getTransactionManager()
           
 java.lang.String getTxMgrName()
           
 UserTransaction getUserTransaction()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

dsCache

protected static java.util.Map<java.lang.String,javax.sql.DataSource> dsCache
Constructor Detail

JNDIFactory

public JNDIFactory()
Method Detail

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