2 Replies Latest reply on Jun 18, 2003 10:24 PM by Jeff

    JDBC datasource & JNDI

    Jeff Newbie

      In my application, the JDBC datasource is "jdbc/tutorial". And it runs okay with Websphere. With JBoss, I set the oracle-ds.xml like this:


      <local-tx-datasource>
      <jndi-name>jdbc/tutorial</jndi-name>
      <connection-url>jdbc:oracle:thin:@localhost:1521:tutorial</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>demo</user-name>
      password
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
      </local-tx-datasource>



      Also I put the classes12.zip into the lib directory. However, when I run this application. The database access results such error:
      javax.naming.NameNotFoundException: jdbc not bound

      What's wrong?