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

Reply via email to