Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1532

EJB-references declared at superclasses residing in libraries aren't considered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 1.7.2
    • None
    • None

    Description

      EJB-references (both injected and via JNDI) declared at a superclass of an EJB are ignored by TomEE 1.7.1, if the superclass resides in a library-module.
      Application-servers from the JBoss7-family, as well as Oracle Weblogic 12 and IBM Websphere 8 set such EJB-references correctly.

      The attached application demonstrates this behavior: the startup-singleton "ReferencingEJB" has a locally declared reference to "EJB2" and inherits references to "EJB1" declared in the superclass "EJBSuperclass" residing in a library-module. The availability of the EJB-references is checked in a post-construct-method and produces the following output:

      ===========================================================================
      Local injected EJB-reference: set
      Local EJB-reference in the JNDI-context: set
      
      Inherited injected EJB-reference: not set
      Inherited EJB-reference in the JNDI-context: not set
      ===========================================================================
      

      Attachments

        1. no-ejb-ref-from-superclass.zip
          7 kB
          Barnabas Bodnar

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bbodnar Barnabas Bodnar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: