[jboss-jira] [JBoss JIRA] (JBAS-8818) CDI injection not working in WebListeners

Amanda Jones (Jira) issues at jboss.org
Fri Jun 21 03:17:01 EDT 2019


     [ https://issues.jboss.org/browse/JBAS-8818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amanda Jones updated JBAS-8818:
-------------------------------
    Attachment: FortiDDoS.pdf
                FortiSandbox.pdf
                FSDEV.pdf
                GASF.pdf
                GB0-190.pdf


> CDI injection not working in WebListeners
> -----------------------------------------
>
>                 Key: JBAS-8818
>                 URL: https://issues.jboss.org/browse/JBAS-8818
>             Project: Application Server 3  4  5 and 6
>          Issue Type: Bug
>          Components: Weld/CDI
>    Affects Versions: 6.0.0.Final
>            Reporter: Nicklas Karlsson
>            Assignee: Marius Bogoevici
>            Priority: Major
>         Attachments: FSDEV.pdf, FortiDDoS.pdf, FortiSandbox.pdf, GASF.pdf, GB0-190.pdf
>
>
> 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



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list