1 //$Id: TransactionManagerLookup.java,v 1.1 2004/06/03 16:31:29 steveebersole Exp $2 package org.hibernate.transaction;3 4 import java.util.Properties ;5 import javax.transaction.TransactionManager ;6 7 import org.hibernate.HibernateException;8 9 /**10 * Concrete implementations locate and return the JTA11 * <tt>TransactionManager</tt>.12 * @author Gavin King13 */14 public interface TransactionManagerLookup {15 16 /**17 * Obtain the JTA <tt>TransactionManager</tt>18 */19 public TransactionManager getTransactionManager(Properties props) throws HibernateException;20 21 /**22 * Return the JNDI name of the JTA <tt>UserTransaction</tt>23 * or <tt>null</tt> (optional operation).24 */25 public String getUserTransactionName();26 27 }28 29 30 31 32 33 34