public final class TransactionManagerLookupFactory extends Object
TransactionManagerLookup
instances.Modifier and Type | Method and Description |
---|---|
static TransactionManager |
getTransactionManager(Properties props)
Convenience method for locating the JTA
TransactionManager from the
given platform config. |
static TransactionManagerLookup |
getTransactionManagerLookup(Properties props)
Generate the appropriate
TransactionManagerLookup given the
config settings being passed. |
public static TransactionManager getTransactionManager(Properties props) throws HibernateException
TransactionManager
from the
given platform config.
Same as calling getTransactionManager(java.util.Properties)
.getTransactionManager( props )props
- The properties representing the platform configTransactionManager
HibernateException
- Indicates a problem either (a) generatng the
TransactionManagerLookup
or (b) asking it to locate the TransactionManager
.public static TransactionManagerLookup getTransactionManagerLookup(Properties props) throws HibernateException
TransactionManagerLookup
given the
config settings being passed.props
- The config settingsTransactionManagerLookup
HibernateException
- Indicates problem generating TransactionManagerLookup
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved