We have an application for which we would like to have appserver independant code.
The appservers used are JBOSS, Websphere 5.0.2, and Websphere 5.1.
We are using BMT and using the Hibernate Transaction API. Everything on JBOSS works fine. However websphere has trouble.
I read the multiple postx and tried several things:
1. On Websphere 5.0.2 using Hibernate 2.1.7 or 2.1.8. I get the message:
JTATransactio E net.sf.hibernate.transaction.JTATransaction Could not find UserTransaction in JNDI
JTATransactio E net.sf.hibernate.transaction.JTATransaction TRAS0014I: The following exception was logged javax.naming.NameNotFoundException: Name "comp/UserTransaction" not found in context "java:".
which has been documented by several users.
2. On using the ExtendedJTATransaction( I don't know if it is supported with Websphere 5.0.x) I get the message:
net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager
net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager.
Any thoughts:
Will Using Hibernate 3.0 solve the problem?
Other option seems using CMT and not using the Hibernate Transaction API. But before I take that step I would like to know if anybody has successfully used the HibernateTransaction APIs on Websphere 5.0.x successfully and if so can give some pointers.
|