Hi,
I don't know if anyone has dealt with this, but I had a problem that I was working on and finally resolved it.
My scenario was that I had an MDB which was reading from an MQ Q and then attempting to update an Oracle 8i database.
I received various exception messages.
the most prominent was:
net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager
I tried various combinations of the hibernate.properties settings, but here's what finally worked:
hibernate.transaction.factory_class = net.sf.hibernate.transaction.JTATransactionFactory
# Hibernate Transaction Manager Lookup Class
# I am using WAS 5.0
hibernate.transaction.manager_lookup_class = net.sf.hibernate.transaction.WebSphereTransactionManagerLookup
What was also important was to set the transactional properties of the MDB bean method to "bean" and to set local transactions to "BeanMethod", "Application" and "Commit"
Also note that in my code, I did not use any session.beginTransaction() or txn.commit() method calls.
Regards,
-Ben
|