Is this for iBATIS DAOs? If so, then leave the JNDI configuration in the SqlMapCfg and specify this in dao.xml:
<transactionManager type="SQLMAP">
<property name="SqlMapConfigResource" value="path_to_sql_your_map_config_file" />
</transactionManager>
Jeff Butler
On 2/15/06, R A <[EMAIL PROTECTED]> wrote:
This is how the JNDI is being looked up in the sqlMapConfig.xml for Weblogic, which works fine.
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name=" context.java.naming.factory.initial" value="weblogic.jndi.WLInitialContextFactory "/>
<property name="context.java.naming.provider.url" value="t3://localhost:7004"/>
<property name="DataSource" value="mydatasource"/>
</dataSource>
</transactionManager>
But what is the right way to configure the above in " dao.xml"
<context>
<transactionManger type="JDBC">
<property name="DataSource" value="JNDI"/ > ?????
<property name="DataSource" value="mydatasource"/> ????
<property name="context.java.naming.factory.initial" value=" weblogic.jndi.WLInitialContextFactory"/>
<property name="context.java.naming.provider.url " value="t3://localhost:7004
</transactionManger>
</context>
If I use: <property name="DataSource" value="JNDI"/ > , how will I call my datasource "mydatasource" ?
If I use: <property name="DataSource" value="mydatasource"/>, how will the DaoManager know the JNDI trasaction type?
Thanks,
Alex
