Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Management - Hibernate with Spring.

 
GS Chidam
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I am doing two different tables update one by one, table 1 is updated successfully, before update the table 2, the application server crash or may be server stopped.

To run my system correctly, i need to update both the table or need to rollback both table.

How to handle this kind of case in hibernate spring.

If any one handled this kind of cases, pls give advice.


Thanks
regards
Chidam
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a simple transaction. What have you done so far ?
Take look at the Spring Transaction Proxy Feature.


Pascal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic