Discussions

EJB design: Cant found datasource jndi name in weblogic6.0

  1. Cant found datasource jndi name in weblogic6.0 (1 messages)

    Hi all
      I define a connection pool and a datasource name in
    weblogic6.0 by admin console,my config.xml:
    ...
    <JDBCConnectionPool CapacityIncrement="1"
            DriverName="sun.jdbc.odbc.JdbcOdbcDriver" InitialCapacity="1"
            LoginDelaySeconds="5" MaxCapacity="2" Name="SqlServerPool"
            Properties="user=daniel;password=daniel;server=localhost"
            TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
            TestTableName="cartype" URL="jdbc:odbc:Mydsn"/>
    ...
    <JDBCDataSource JNDIName="AppDSN" Name="AppDSN" PoolName="SqlServerPool"/>
    ....

    but i can not found the JNDI name:AppDSN

    javax.sql.DataSource ds=(javax.sql.DataSource)ctx.lookup("AppDSN");

    any suggestion will be appreciated!
  2. double check that it is in your target server ( you have to define it and make it available).

    --
    Tinou Bao
    www.baosys.com