-
Oct 29th, 2007, 04:33 AM
#1
OpenSessionInView with Hibernate and JtaTransactionmanager
In our current setup we are using the OpenSessionInViewFilter with Hibernate and the HibernateTransactionManager. This works as expected, and the sessions flushmode is set to AUTO on entering a transaction demarcated by @Transactional .
We now need to use a JMS source in addition to our database and need JTA transactions to guarantee one transaction. When we set the JtaTransactionManager in our configuration the setup stops working and the existing session from the OpenSessionInViewFilter is never switched to FlushMode.AUTO. We are still able to reattach objects (since we have demarcated with @Transactional a separate session will be started) and do stuff, but we shouldn't need to do this.
Any info would be helpful. Even pointers to where I should debug.
Cheers,
Anders,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules