ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From R A <rai...@gmail.com>
Subject JNDI in daoConfig
Date Wed, 15 Feb 2006 18:31:18 GMT
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