Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
If a web application contains a Servlet and a REST service (as CDI Bean) with an @EJB(lookup="java:comp/env/xxxx") injection for a indirection via web.xml/jboss-web.xml the CDI Bean will ignore it without any message whereas the Servlet inject the EJB proxy as expected.
This approach is used to be able to change/adjust the target EJB by changing the DD and not the application code.
Reproducer can be found here:
git@github.com:wfink/jboss-eap-quickstarts.git
BRANCH: 6.4.x_ejb-multi-server_reproducerEJB-injection2
SubProject: ejb-multi-server (used only a part of it to have a web-app and a ejb-app)
see ejb-multi-server/README-reproducerEJB-injection
Attachments
Issue Links
- incorporates
-
WFLY-7140 Injection with @EJB is not working as expected with CDI (REST) beans
-
- Closed
-
- is cloned by
-
JBEAP-6086 EJB injection with indirection via web.xml is ignored
-
- Verified
-