From: <leg...@at...> - 2003-05-31 08:12:50
|
Message: The following issue has been closed. Resolver: Gavin King Date: Sat, 31 May 2003 3:11 AM What is your name? (To add to changelog and @author tag) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-116 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-116 Summary: JOnASTransactionManagerLookup Type: Patch Status: Closed Priority: Major Resolution: FIXED Project: Hibernate2 Components: core Fix Fors: 2.0 final Versions: 2.0 final Assignee: Gavin King Reporter: Van caneghem Created: Fri, 30 May 2003 8:15 AM Updated: Sat, 31 May 2003 3:11 AM Description: Could you add this class? ====> package net.sf.hibernate.transaction; import java.util.Properties; import javax.transaction.TransactionManager; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import net.sf.hibernate.HibernateException; /** * TransactionManager lookup strategy for JOTM * @author Low Heng Sin */ public class JOnASTransactionManagerLookup implements TransactionManagerLookup { private static final Log log = LogFactory.getLog(JOnASTransactionManagerLookup.class); /** * @see net.sf.hibernate.transaction.TransactionManagerLookup#getTransactionManager(Properties) */ public TransactionManager getTransactionManager(Properties props) throws HibernateException { 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 String getUserTransactionName() { return "java:comp/UserTransaction"; } } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |