[
https://issues.jboss.org/browse/WFLY-7140?page=com.atlassian.jira.plugin....
]
Martin Kouba commented on WFLY-7140:
------------------------------------
For the record, {{org.jboss.as.weld.services.bootstrap.WeldEjbInjectionServices}}
(responsible for @EJB injection) is using {{org.jboss.as.naming.deployment.ContextNames}}
which obviously does not support this jboss-specific "ejb" namespace. So the
only solution I see is to detect this namespace and perform a simple {{new
InitialContext().lookup(name)}}.
Injection with @EJB is not working as expected with CDI (REST) beans
--------------------------------------------------------------------
Key: WFLY-7140
URL:
https://issues.jboss.org/browse/WFLY-7140
Project: WildFly
Issue Type: Bug
Components: CDI / Weld, EJB
Reporter: Wolf-Dieter Fink
Assignee: Jason Greene
The injection with @EJB should work the same way in a Rest service (CDI Bean) as it does
in a Servlet.
@EJB(lookup =
"ejb:jboss-ejb-multi-server-app-one/ejb/AppOneBean!org.jboss.as.quickstarts.ejb.multi.server.app.AppOne")
is not working correct if used in a CDI Bean in the reproducer example.
Reproducer can be found here:
git@github.com:wfink/jboss-eap-quickstarts.git
BRANCH: 6.4.x_ejb-multi-server_reproducerEJB-injection
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
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)