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

Injection of resource-ref elements without a mapped name fail

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-Beta1
    • Component/s: core
    • Labels:
      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                wolfc Carlo de Wolf
                Reporter:
                wolfc Carlo de Wolf
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: