Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.7.1
-
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
Attachments
Issue Links
- duplicates
-
XBEAN-280 parent classes can't be loaded through linkParent in some cases
- Closed