public class JNDITransactionFactory extends Object implements TransactionFactory
Modifier and Type | Field and Description |
---|---|
protected static ConcurrentHashMap<String,DataSource> |
dsCache |
static String |
module |
Constructor and Description |
---|
JNDITransactionFactory() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection(GenericHelperInfo helperInfo) |
static Connection |
getJndiConnection(String jndiName,
String jndiServerName) |
TransactionManager |
getTransactionManager() |
String |
getTxMgrName() |
UserTransaction |
getUserTransaction() |
void |
shutdown() |
public static final String module
protected static final ConcurrentHashMap<String,DataSource> dsCache
public TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionFactory
public UserTransaction getUserTransaction()
getUserTransaction
in interface TransactionFactory
public String getTxMgrName()
getTxMgrName
in interface TransactionFactory
public Connection getConnection(GenericHelperInfo helperInfo) throws SQLException, GenericEntityException
getConnection
in interface TransactionFactory
SQLException
GenericEntityException
public static Connection getJndiConnection(String jndiName, String jndiServerName) throws SQLException, GenericEntityException
SQLException
GenericEntityException
public void shutdown()
shutdown
in interface TransactionFactory