7 Replies Latest reply on Jul 28, 2003 11:55 AM by Amit Kirdatt

    NameNotFoundException

    Amit Kirdatt Newbie

      Hi I am trying to use oracle as a datasource.
      Here is what I have in my oracle-ds.xml


      <xa-datasource>
      <jndi-name>OracleDS</jndi-name>
      <track-connection-by-tx>true</track-connection-by-tx>
      <isSameRM-override-value>false</isSameRM-override-value>
      <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
      <xa-datasource-property name="URL">jdbc:oracle:thin:@db.myserver.com:1521:testdb</xa-datasource-property>
      <xa-datasource-property name="User">test</xa-datasource-property>
      <xa-datasource-property name="Password">test</xa-datasource-property>
      <min-pool-size>5</min-pool-size>
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
      </xa-datasource>


      <!--End -->

      In my jbosscmp-cmp.xml file I have:

      java:/OracleDS
      <datasource-mapping>Oracle9i</datasource-mapping>
      <create-table>false</create-table>
      <remove-table>false</remove-table>


      And throught that file in My EntityBeans I use

      java:/OracleDS
      <datasource-mapping>Oracle9i</datasource-mapping>

      Now, I keep getting an error :

      javax.naming.NameNotFoundException: OracleDS not bound

      I am using jboss-3.2.0.

      Can somebody please help me out?