This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am sorry for the haeding of the question ( I could not think better).
I am using EJB ContainerManaged Transaction suppourt on to my Application .
Hi i am doing a insert operation.This insert operation involves inserting into two tables .
For example :
The requirement is
Insertion for the buses table should be done first and then insertion into DTR table should happen.(Both of these statemets are in the same method.)
The scenario is that , if the insert for the DTR table fails due to Runtime data passed , i want to rollback the insertion that happened on to the buses table .
How can i do this
(If it is related to JDBC i would have set
But what in this case??
Please suggest your ideas .