ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Maves" <nathan.ma...@gmail.com>
Subject Re: AutoCommit Defaulted to true/false?
Date Mon, 09 Jun 2008 19:51:39 GMT
Taken from the Developer Guide located at

The <transactionManager> element also allows an optional attribute
commitRequired that can be true or
false. Normally iBATIS will not commit transactions unless an insert,
update, or delete operation has been
performed. This is true even if you explicitly call the commitTransaction()
method. This behavior
creates problems in some cases. If you want iBATIS to always commit
transactions, even if no insert, update, or delete operation has been
performed, then set the value of the commitRequired attribute to true.

On Mon, Jun 9, 2008 at 11:57 AM, Devine, James <james.devine@fmr.com> wrote:

>  Hello,
> I am using iBatis for data access with a Sybase database.  Our Sybase
> database is configured to run in "unchained" mode, which basically means
> that autocommit must be set to true.
> I am trying to figure out the default behavior of iBatis with respect to
> autocommit.  I thought that autocommit was set to false by default.
> However, when I execute this, I am getting back true:
> sqlMapClient.getDataSource().getConnection().getAutoCommit();
> - I thought that iBatis defaulted autocommit to false.  Is this not the
> case?
> Thanks,
> Jim

View raw message