Package org.hibernate.transaction
Class JBossTSStandaloneTransactionManagerLookup
java.lang.Object
org.hibernate.transaction.JBossTSStandaloneTransactionManagerLookup
- All Implemented Interfaces:
TransactionManagerLookup
public class JBossTSStandaloneTransactionManagerLookup
extends Object
implements TransactionManagerLookup
Return a standalone JTA transaction manager for JBoss Transactions
Known to work for org.jboss.jbossts:jbossjta:4.14.0.Final
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTransactionIdentifier(Transaction transaction) Determine an identifier for the given transaction appropriate for use in caching/lookup usages.getTransactionManager(Properties props) Obtain the JTATransactionManager.Return the JNDI namespace of the JTAUserTransactionfor this platform or null; optional operation.
-
Constructor Details
-
JBossTSStandaloneTransactionManagerLookup
public JBossTSStandaloneTransactionManagerLookup()
-
-
Method Details
-
getTransactionManager
Description copied from interface:TransactionManagerLookupObtain the JTATransactionManager.- Specified by:
getTransactionManagerin interfaceTransactionManagerLookup- Parameters:
props- The configuration properties.- Returns:
- The JTA
TransactionManager. - Throws:
HibernateException- Indicates problem locatingTransactionManager.
-
getUserTransactionName
Description copied from interface:TransactionManagerLookupReturn the JNDI namespace of the JTAUserTransactionfor this platform or null; optional operation.- Specified by:
getUserTransactionNamein interfaceTransactionManagerLookup- Returns:
- The JNDI namespace where we can locate the
UserTransactionfor this platform.
-
getTransactionIdentifier
Description copied from interface:TransactionManagerLookupDetermine an identifier for the given transaction appropriate for use in caching/lookup usages. Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly JEE containers (although WebSphere is still the only known such brain-dead, sales-driven impl).- Specified by:
getTransactionIdentifierin interfaceTransactionManagerLookup- Parameters:
transaction- The transaction to be identified.- Returns:
- An appropropriate identifier
-