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:26:42 GMT
A little more information...this will probably work too:

<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="*DBJndiContext*" value="mydatasource"/>
  </dataSource>
</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