Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1465

Injection of resource-ref elements without a mapped name fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 1.0.0-Beta1
    • None
    • core
    • None

    Description

      The following piece of xml:

      <resource-ref>
      <res-ref-name>orb</res-ref-name>
      <res-type>org.omg.CORBA.ORB</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      <injection-target>
      <injection-target-class>MyClass</injection-target-class>
      <injection-target-name>orb</injection-target-name>
      </injection-target>
      </resource-ref>

      results in:

      javax.ejb.EJBException: java.lang.RuntimeException: Unable to inject jndi dependency: java:comp/ORB into property MyClass.orb: comp not bound

      Attachments

        Activity

          People

            rhn-engineering-cdewolf Carlo de Wolf
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: