Spring calls rollback only when a RuntimeException is encountered. Normal exceptions cause commits (unless stated otherwise in @Transactional <mailto:[EMAIL PROTECTED]> tag). This may be the cause of your problem. If this is not the case, what database are you using? And can you send your spring.xml file? Christian
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 04 July 2007 01:36 To: [email protected] Subject: transaction rollback Hi, I am using Spring and iBatis. I am trying to make an object transactional by marking the object @transactional using annotational transaction management of Spring. But on doing this no rollback seems to happen if the object throws an exception. And also from logs I find that each SQL statement in iBatis is getting committed as its executed. As a result, no rollback happens when there is any exception. Any help on this will be great. Thanks, Bharathi This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
