This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Transaction Management in SpringDAO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Transaction Management in SpringDAO" Watch "Transaction Management in SpringDAO" New topic
Author

Transaction Management in SpringDAO

radhika chennu
Greenhorn

Joined: Dec 26, 2006
Posts: 3
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Transaction Management in SpringDAO
 
Similar Threads
Problem In EJB Transaction Management
Serializable Isolation level for Stateless Session Bean Method
two transactions under the same XA cordinator to the same resource
Qns about Finder in EJB2.0
Doubt on the level of lock and concurency