0 Replies Latest reply on Sep 30, 2002 1:32 PM by davram

    java:/DefaultDS instead of java:/OracleDS

    davram

      Hello.

      I have a datasource configuration problem. My BMP application is bound to an Oracle data source, but for some reason JBoss is ignoring my configurations...

      In the ejb-jar.xml file I have the following references for my EJBs :

      ...

      ...
      <resource-ref>
      <res-ref-name>jdbc/CUCU_DB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Application</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>
      ...

      ...

      while the jboss.xml file of my application specifies, for the same bean :

      ...

      ...
      <ressource-ref>
      <res-ref-name>jdbc/CUCU_DB</res-ref-name>
      <jndi-name>java:/OracleDS</jndi-name>
      </ressource-ref>

      ...

      (I should say here that I tried to re-referenciate my resource through a resource-manager element, but I had the same results...)

      The oracle-service.xml file is the one provided by JBoss, in its examples directory, and properly configured with the connection URL, username and password of my Oracle server. Its deployment is (as far as I can tell) well
      done : I have no particular exceptions in the log files, and the JMX console feedbacks this by listing the "OracleDS" JNDI name in the list provided by
      the JndiView MBean.

      The deployment of my application, though, logs the following for every EJB deployed :

      "... [org.jboss.ejb.EntityContainer] Binding resource manager: java:/DefaultDS to JDNI ENC as: jdbc/CUCU_DB".

      And the SQL requests are made, indeed, to Hypersonic DB, which is the DefaultDS...

      I feel that a very little configuration detail is wrong here, twisting it all upside down. I have followed all the steps all over again, with no success.

      For the record, I use JBoss 3.0.2 bundled with Tomcat 4.0.4, Oracle 8.1.5. I had the same problem with JBoss 3.0.0, so I would be rather blaming my configuration files...

      What should I check out next ? Any ideas are welcome. Thanks in advance.

      Dan AVRAM