• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Managing hibernate transactions involving sessions from multiple sessionFactories

 
benjamin muktesh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to wrap transactions spanning multiple databases in a JtaTransactionManager.
I am using JOTM to get instance of a userTransaction



my understanding here is that i dont need to make my sessionFactory aware of what transaction management strategy i am using.
Also if i need to make piece of code atomic i just mark the method as @Transactional.

Somehow this approach fails miserably and my transactions are not being rolled back.
Any insight or help is greatly welcome

Thanks
 
benjamin muktesh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind.
I switched to Atomikos and it worked like a dream.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic