Can someone please help me configure JTA. I keep getting "Unable to locate current JTA transaction". I can successfully lookup java:comp/UserTransaction in my application but Hibernate fails to find it.
Code:
<hibernate-configuration>
<session-factory name="hibernate_SessionFactory">
<property name="connection.datasource">jdbc/MyDS</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">com.util.MyTransactionManagerLookup</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="show_sql">true</property>
<!-- Mapping files -->
</session-factory>
</hibernate-configuration>
Error:
The error is: javax.servlet.ServletException: Unable to locate current JTA transaction
Thanks!