]
James Livingston updated WFLY-3640:
-----------------------------------
Attachment: reproducer.zip
EJB injection does not work in components added via Servlet Context
-------------------------------------------------------------------
Key: WFLY-3640
URL:
https://issues.jboss.org/browse/WFLY-3640
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web (Undertow)
Affects Versions: 8.1.0.Final
Reporter: James Livingston
Assignee: Stuart Douglas
Attachments: reproducer.zip
You can add web components at runtime ServletContext.addListener() and similar methods.
@EJB injection inside those components does not work and the field remains null. I have
not yet tested whether other forms of injection work or not.
I'm attaching a test case which adds a listener via a ServletContainerInitializer.