0 Replies Latest reply on May 22, 2003 4:02 AM by zhebbincopng

    question about jndi name format

    zhebbincopng Newbie

      hello
      see my "oracle-ds.xml" file as following,if i look up it as

      ctx.lookup("centerdb");

      it don't work,but in other server such as weblogic,websphere etc,it works.

      in jboss,i must use following format to lookup it:

      ctx.lookup("java:/centerdb");

      why?how can i config the jboss to use the GENERAL format and make my code to cross platform?





      <local-tx-datasource>
      <jndi-name>centerdb</jndi-name>
      <connection-url>jdbc:oracle:thin:@10.44.0.197:1521:oradb</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>epayusr</user-name>
      epayusr
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
      </local-tx-datasource>






      thank you!