You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Michael Schall <mi...@gmail.com> on 2008/03/18 19:29:33 UTC

JNDI dataSource and SqlMap-Config.xml settings

We have recently moved to using JNDI as our JDBC transaction manager.

    <transactionManager type="JDBC">
        <dataSource type="JNDI">
    <property name="DataSource" value="${jndiDataSource}"/>
  </dataSource>
</transactionManager>

Re: JNDI dataSource and SqlMap-Config.xml settings

Posted by Michael Schall <mi...@gmail.com>.
Sorry... Sent the message while formating my xml...

We have recently moved to using JNDI through WebSphere as our JDBC
transaction manager while connecting to a DB2 9.1 database.

Below is my transactionManager and settings elements from my
sqlmap-config.xml file.

I am wondering if the following "settings" still apply if JNDI is acting as
my transaction manager.

Thanks
Mike

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

<transactionManager type="JDBC">
  <dataSource type="JNDI">
    <property name="DataSource" value="${jndiDataSource}"/>
  </dataSource>
</transactionManager>