Announcement Announcement Module
Collapse
No announcement yet.
OpenSessionInView with Hibernate and JtaTransactionmanager Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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,
Working...
X