From: <leg...@at...> - 2003-05-30 15:28:50
|
Message: The following issue has been re-assigned. Assignee: Gavin King (mailto:ga...@in...) Assigner: Gavin King (mailto:ga...@in...) Date: Fri, 30 May 2003 10:27 AM Comment: sure ;) --------------------------------------------------------------------- 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: Assigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0 final Assignee: Gavin King Reporter: Van caneghem Created: Fri, 30 May 2003 8:15 AM Updated: Fri, 30 May 2003 10:27 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 |