• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Managing hibernate transactions involving sessions from multiple sessionFactories

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind.
I switched to Atomikos and it worked like a dream.
reply
    Bookmark Topic Watch Topic
  • New Topic