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

JOnASTransactionManagerLookup

public class JOnASTransactionManagerLookup extends Object implements TransactionManagerLookup
TransactionManager lookup strategy for JOnAS
author
?

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.jonas_tm.Current");
			return (TransactionManager) clazz.getMethod("getTransactionManager", null).invoke(null, null);
		}
		catch (Exception e) {
			throw new HibernateException( "Could not obtain JOnAS transaction manager instance", e );
		}
	
public java.lang.StringgetUserTransactionName()

		return "java:comp/UserTransaction";