ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: JNDI in daoConfig
Date Wed, 15 Feb 2006 20:17:14 GMT
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 <raiyoo@gmail.com> 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
>

Mime
View raw message