OK, that *should* work..do you have a simple unit test - i.e., can you eliminate some moving parts and make it work from a command line or your IDE?
I think I'd start with a sql map client in JUnit with some hard-coded stuff to see if it works there. If it doesn't, post your configuration and we can look at that. If it does, then it's most likely an issue coming from the web-tier. May be a wacked JNDI datasource configuration? Another approach might be to look at the driver (what driver are you using?) and in the simplest case: does simple JDBC code rollback OK with the driver? Larry On 8/7/06, Dunton Stephen - sdunto <[EMAIL PROTECTED]> wrote:
Sql Server. I'm using the "Simple" jdbc connection stuff. Thanks, Stephen Dunton Acxiom-Insight http://www.acxiominsight.com/ [EMAIL PROTECTED] 303.785.3938 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Meadors Sent: Monday, August 07, 2006 11:58 AM To: dev@ibatis.apache.org Subject: Re: Can't Get Rollback Working Interesting configuration...what is the database? Larry On 8/7/06, Dunton Stephen - sdunto <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I am using iBatis / Sql Maps with Cold Fusion 7 via java. > > > > I have a number of sql statements executing that I need to act as an atomic > transaction. I can't get rollback via a call to endTransaction() to work > properly though. All statements are still committing. To test I am > dividing by zero and expecting all the previous statements to rollback but > they're not. I have the autocommit property set to false in the xml config > file and I am starting a transaction with startTransaction(). > > > > Any thoughts would be greatly appreciated. > > > > Thanks, > > > > Stephen Dunton > > Acxiom-Insight > > http://www.acxiominsight.com/ > > [EMAIL PROTECTED] > > 303.785.3938 > > > > > ************************************************************************ * > The information contained in this communication is confidential, is > intended only for the use of the recipient named above, and may be > legally privileged. > > If the reader of this message is not the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. > > If you have received this communication in error, please resend this > communication to the sender and delete the original message or any copy > of it from your computer system. > > Thank you. > ************************************************************************ * > >