Taken from the Developer Guide located at http://ibatis.apache.org/javadownloads.cgi
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 <[EMAIL PROTECTED]> 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 >
