]
Archimedes Trajano closed JBAS-9585.
------------------------------------
Resolution: Duplicate Issue
CDI injection not working in WebListeners
-----------------------------------------
Key: JBAS-9585
URL:
https://issues.jboss.org/browse/JBAS-9585
Project: Application Server 3 4 5 and 6
Issue Type: Bug
Components: Weld/CDI
Affects Versions: 6.0.0.Final
Reporter: Archimedes Trajano
Assignee: Marius Bogoevici
CDI injection is not performed for WebListeners, e.g.
@WebListener
public class BugListener implements HttpSessionListener
{
@Inject
BeanManager beanManager;
...
}
Will have beanManager==null when the methods are hit