• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Global Transaction management using spring + hibernate

 
Ranch Hand
Posts: 81
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,Solomon,

Can you please put some light on managing global transactions using hibernate with spring.

It becomes quite cumbersome when you use hibernate .

I want to know if there are soem best practices to manage by using spring with hibernate.

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sourabh girdhar wrote:Hi Paul,Solomon,

Can you please put some light on managing global transactions using hibernate with spring.

It becomes quite cumbersome when you use hibernate .

I want to know if there are soem best practices to manage by using spring with hibernate.



Can you be a little more specific. What do you mean by a global transaction, and how is Hibernate making it cumbersome.

Mark
 
sourabh girdhar
Ranch Hand
Posts: 81
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the scenario where in my application has two databases.

I want to add transaction management to the operation which updates both the databases..

One of them is Sybase and other is MYSQL.

 
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Use HibernateTransactionManager either programatically (or) declaratively in XMl based on your needs

http://static.springsource.org/spring/docs/1.1.5/api/org/springframework/orm/hibernate/HibernateTransactionManager.html
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic