• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Management in SpringDAO

 
radhika chennu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is Radhika, Please provide guide lines how to do transaction management in spring.

Please consider the senario,
From pojo calling two different dao methods.
First calling dao1 method to insert row in DB.
next calling dao2 method to update row in DB if dao1 method returns successfull insertion.

while doing update, if gets any exception how can i rollback inserted row through dao1 method.

Please helpme in this.

Regards,
Radhika
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic