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

Match JEE injection rules

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • EJB 3.0 RC3
    • EJB 3.0 RC1
    • None
    • None

      Follow all the rules for section 5 of the Java EE public draft. Specifically:

      • Section 5.2.3 on how @Resource.name() @EJB.name(), etc.. will default to the FQN of the class/fieldname or setter name. Get me?
      • @Resource should have a mappedName() attribute added to it. Our @Resource annotation should use this attribute for its global JNDI lookup name. The @Resource.name() should default as specified in Section 5.2.3. If no mappedName() is specified, then throw an error (except for things like SessionContext, UserTransaction, etc...)
      • Add a mapped-name element to resource-env-ref and other XML ref types:

      http://java.sun.com/xml/ns/javaee/javaee_5.xsd
      mapped-name should be used for what we bind to Global JNDI. For instance

      <resource-env-ref>
      <mapped-name>java:/DefaultDS</mapped-name>
      </resource-env-ref>

              patriot1burke@gmail.com Bill Burke (Inactive)
              patriot1burke@gmail.com Bill Burke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: