2 Replies Latest reply on Oct 14, 2003 3:56 PM by hakanberlin

    OracleDS not bound problem. Can you post Oracle-ds.xml?

    hakanberlin

      Can anyone post the oracle-ds.xml please??
      I don't have it in my Jboss directory.
      I have the oracle-service.xml.

      But I only get problems with that. Last week I deployed CMP Entity Beans. All worked fine.

      Now I put some DB-Code into these CMP Entity Beans.
      (Code that manipulates the primary key)

      I use the same DataSource that my CMP Beans did use last week. But now I get error: OracleDS not bound.

      Thanx

        • 1. Re: OracleDS not bound problem. Can you post Oracle-ds.xml?
          schmidts

          What version of JBoss?
          Check out docs/examples/jca/.

          • 2. Re: OracleDS not bound problem. Can you post Oracle-ds.xml?
            hakanberlin

            Thanx for the answer. I use JBoss 3.0.4

            I checked this directory. No it is not there.

            But actually I don't have the Not Boudn problem anymore.
            I use further on the oracle-service.xml

            I added the prefix "java:/" to the JNDI Name OracleDS in the <resource-ref>-tag inside the jboss.xml.

            Example:
            <resource-ref>
            <res-ref-name>jdbc/OracleDS</res-ref-name>
            <jndi-name>java:/OracleDS</jndi-name>
            </resource-ref>

            And it works.
            But it is not really clear to me why it works now.

            Has anybody annotated all the steps from A to Z how to define a DataSource, bind it to a JNDI-Name and reference it from code?

            Perhaps any article in this forum? I searched the whole forum for an abstracting article, but could not find anything.