public abstract class JNDITransactionManagerLookup extends Object implements TransactionManagerLookup
TransactionManagerLookup where the
underlying TransactionManager is available via JNDI lookup at the
specified location - getName().| Constructor and Description |
|---|
JNDITransactionManagerLookup() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getName()
Get the JNDI namespace under wich we can locate the
TransactionManager. |
Object |
getTransactionIdentifier(Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
|
TransactionManager |
getTransactionManager(Properties props)
Obtain the JTA
TransactionManager. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUserTransactionNameprotected abstract String getName()
TransactionManager.TransactionManager JNDI namespacepublic TransactionManager getTransactionManager(Properties props) throws HibernateException
TransactionManager.getTransactionManager in interface TransactionManagerLookupprops - The configuration properties.TransactionManager.HibernateException - Indicates problem locating TransactionManager.public Object getTransactionIdentifier(Transaction transaction)
getTransactionIdentifier in interface TransactionManagerLookuptransaction - The transaction to be identified.Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved