FileDocCategorySizeDatePackage
JNDITransactionManagerLookup.javaAPI DocHibernate 3.2.5959Thu Jun 03 11:31:32 BST 2004org.hibernate.transaction

JNDITransactionManagerLookup

public abstract class JNDITransactionManagerLookup extends Object implements TransactionManagerLookup
Locates a TransactionManager in JNDI.
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
protected abstract java.lang.StringgetName()

public javax.transaction.TransactionManagergetTransactionManager(java.util.Properties props)

see
org.hibernate.transaction.TransactionManagerLookup#getTransactionManager(java.util.Properties)

		try {
			return (TransactionManager) NamingHelper.getInitialContext(props).lookup( getName() );
		}
		catch (NamingException ne) {
			throw new HibernateException( "Could not locate TransactionManager", ne );
		}