Hello,
I am using :
IBM Rational® Application Developer™ for WebSphere® Software Version: 7.5.0
hibernate-distribution-3.3.2.GA
The relevant lines from hibernate.cfg.xml :
Code:
<property name="hibernate.transaction.factory_class"> org.hibernate.transaction.JTATransactionFactory </property>
<property name="jta.UserTransaction"> java:comp/UserTransaction </property>
<property name="hibernate.transaction.manager_lookup_class"> org.hibernate.transaction.WebSphereExtendedJTATransactionLookup </property>
<property name="hibernate.connection.datasource">jndi/Phobos</property>
That last being my configured datasource in Websphere.
Some of the code I'm using to start a transaction is :
Code:
Configuration configuration = new Configuration();
SessionFactory sessionFactory = configuration.configure().buildSessionFactory();
Session session = sessionFactory.openSession();
session.beginTransaction();
And I'm getting an out of memory exception with
org.hibernate.transaction.JTATransactionFactory.getUserTransaction(JTATransactionFactory.java:172)
that loops.
I checked the infinite loop leading to the out of memory exception and the responses are to add the java:comp/UserTransaction, which I did.
Thanks in advance.