Re: Transaction Rollback not working with iBatis + Spring

2010-07-21 Thread Bruno Issenmann
Hi, I'm facing the same problem. Did you solved it ? Thanks - To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org

Re: Transaction Rollback not working with iBatis + Spring

2010-07-21 Thread Larry Meadors
You don't need the batch, and I'm pretty sure it won't ever work with the batch because the inserts don't happen when you call them (they happen when you call executeBatch()) so your ids don't get set when you expect them to. Remove the lines related to the batch, and I think it'll work. Larry

Re: Transaction Rollback not working with iBatis + Spring

2010-07-21 Thread Bruno Issenmann
Thanks for ansering. I do not use the batch. I'm just doing two inserts then i commit. I still have an integrity contraint violation. - To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-

RE: Transaction Rollback not working with iBatis + Spring

2010-07-21 Thread Vinaya Tirikkovalluru
Sorry!! I missed the thread. Does it give you a runtime exception? Only if the code throws a runtime exception the transaction will be rolled back Vinaya -Original Message- From: Bruno Issenmann [mailto:b.issenm...@labsoft.fr] Sent: Wednesday, July 21, 2010 1:07 PM To: user-java@ibatis.

Re: Transaction Rollback not working with iBatis + Spring

2010-07-21 Thread Bruno Issenmann
Vinaya Tirikkovalluru converge.com> writes: > > Sorry!! I missed the thread. > Does it give you a runtime exception? Only if the code throws a runtime > exception the transaction will be rolled back > > Vinaya I have a runtime exception, transaction is rolled back. When i run the SQL manually

RE: Transaction Rollback not working with iBatis + Spring

2010-07-21 Thread Vinaya Tirikkovalluru
Does just the insert work on the table which is giving the issue without the insert into the history? -Original Message- From: Bruno Issenmann [mailto:b.issenm...@labsoft.fr] Sent: Wednesday, July 21, 2010 2:03 PM To: user-java@ibatis.apache.org Subject: Re: Transaction Rollback not wo