Hello
I am using 3.2.6.ga & deployed in Websphere 6.0.
I am using
Code:
<property name="hibernate.current_session_context_class">jta</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
Everything works great other that my HEAP is ever increasing. I call the code properly
Code:
UserTransaction tx = (UserTransaction)new InitialContext().lookup("java:comp/UserTransaction");
tx.begin();
session =HibernateUtil.getInstance().getSessionFactory().getCurrentSession();
session.save(monitorStatus);
tx.commit();
and I see a huge amount of JTASessionContext objects in the SessinFactory object. The number continues to grow. I thought after the tx.commit call the JTASessionContext supposed to get cleaned up.
Am I missing something?[/code]