ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaybytez <jayby...@gmail.com>
Subject commitRequired?, DefaultAutoCommit?, SetAutoCommitAllowed?
Date Tue, 27 Jun 2006 17:25:26 GMT

What do these fields do in relation to allowing CMT to handle transactions in

The documentation is not totally clear, and from posts that I have read, I
am not sure if there is conflicting information.  Does
commitRequired="false" mean the container handles the transaction without
iBatis interaction, or does commitRequired="true" with DefaultAutoCommit and
SetAutoCommitAllowed mean the container handles the transactions without

Here are my two configs and I cannot tell what the difference is regarding

This is my original configuration:

    <transactionManager type="EXTERNAL" commitRequired="false">
        <dataSource type="JNDI">
            <property name="DataSource" value="${fooPool.JNDIName}" />

This appears to be the suggested configuration:

    <transactionManager type="EXTERNAL" commitRequired="true">
        <property name="DefaultAutoCommit" value="false"/>
        <property name="SetAutoCommitAllowed" value="false"/> 
        <dataSource type="JNDI">
            <property name="DataSource" value="${fooPool.JNDIName}" />


jay blanton
View this message in context: http://www.nabble.com/commitRequired-%2C-DefaultAutoCommit-%2C-SetAutoCommitAllowed--tf1856695.html#a5070352
Sent from the iBATIS - User - Java forum at Nabble.com.

View raw message