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

JOTMTransactionManagerLookup

public class JOTMTransactionManagerLookup extends Object implements TransactionManagerLookup
TransactionManager lookup strategy for JOTM
author
Low Heng Sin

Fields Summary
Constructors Summary
Methods Summary
public javax.transaction.TransactionManagergetTransactionManager(java.util.Properties props)

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

		try {
			Class clazz = Class.forName("org.objectweb.jotm.Current");
			return (TransactionManager) clazz.getMethod("getTransactionManager", null).invoke(null, null);
		}
		catch (Exception e) {
			throw new HibernateException( "Could not obtain JOTM transaction manager instance", e );
		}
	
public java.lang.StringgetUserTransactionName()

		return "java:comp/UserTransaction";