I have a method with the following calls to the DAO layer:
In the DAO, I use iBatis. The auditDao maps to an Audit database. The carDao maps to an Automobile database. I want to ensure that if one of the queries fail, then the other does not execute (or is rolled back). How would this best be accomplished using Spring? I'm using Java and Tomcat v6.Code:auditDao.capture(user, time, entity, oldValue, newValue); // maps to an insert statement carDao.insert(car);
Thanks in advance for your help.


Reply With Quote
