ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaybytez <jayby...@gmail.com>
Subject Failed transaction commits half of transaction
Date Mon, 26 Jun 2006 19:57:47 GMT

I am using iBatis on another subproject that querys/deletes/insert from three
separate schemas in one container managed transaction.  The full process
works correctly...except if a RuntimeException occurs midway, then the
container should rollback the entire transaction...this is how it normally
works.  Unfortunately it appears that half the transaction was committed.  I
have a sqlMap configuration file for each connection.  And each
configuration looks the same:

<sqlMapConfig>
    <settings cacheModelsEnabled="true" enhancementEnabled="true"
        lazyLoadingEnabled="true" errorTracingEnabled="false"
        maxRequests="32" maxSessions="10"
        maxTransactions="5" useStatementNamespaces="false" />

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

Does this maybe have to do with the commitRequired?

Thanks,

-jay blanton

    <!-- Identify all SQL Map XML files to be loaded by this
        SQL map.  Notice the paths are relative to the classpath. -->
    <sqlMap resource="ibatis/mappings/foo/ProviderFacilityDAO.xml" />
    <sqlMap resource="ibatis/mappings/foo/ProviderZipCodeRegionsDAO.xml" />

</sqlMapConfig>
--
View this message in context: http://www.nabble.com/Failed-transaction-commits-half-of-transaction-t1851138.html#a5053827
Sent from the iBATIS - User - Java forum at Nabble.com.


Mime
View raw message