I am using CMT. I also have code that explicitly begins and commits transactions as shown in the fragment below.
Transaction code is :
Code:
[color=Brown]public void insertOrUpdate(ProcessInstance pi) throws HibernateException {
Session s = HibernateUtil.openSession();
Transaction tx = s.beginTransaction();
try {
s.saveOrUpdate(pi);
if (LOGGER.isLoggable(Level.FINE)) LOGGER.fine("Inserted or updated processInstance" + pi.getProcessInstanceId() );
tx.commit();
} catch (HibernateException he) {
...
}
finally {
HibernateUtil.closeSession(s);
} [/color]
Above code works fine with JBoss and Weblogic, but throws an exception with WebSphere-
(net.sf.hibernate.transaction.JTATransaction Could not find UserTransaction in JNDI )
This is very urgent!
Thanks in advance
kappu