seeorg.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 ); }
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 ); }
return "java:comp/UserTransaction";