[jboss-jira] [JBoss JIRA] (WFLY-897) Lifecycle and injections ignored in @ManagedBean dynamic Servlet

Stuart Douglas (JIRA) issues at jboss.org
Mon Apr 14 05:00:34 EDT 2014


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

Stuart Douglas resolved WFLY-897.
---------------------------------

    Resolution: Won't Fix


Should be fixed in WF 8. Undertow delegates to the container to create these resources. 
                
> Lifecycle and injections ignored in @ManagedBean dynamic Servlet
> ----------------------------------------------------------------
>
>                 Key: WFLY-897
>                 URL: https://issues.jboss.org/browse/WFLY-897
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (JBoss Web)
>            Reporter: Cheng Fang
>            Assignee: Remy Maucherat
>
> These classes are annotated with javax.annotation.ManagedBean, and added as dynamic servlet.  The regular request processing works, but all lifecycle callback methods and resource injectsions in this dynamic servlet class are ignored.
> Since this class is a managed bean, these annotations need to be honored, though dynamic servelt itself does not require so.
> {quote}
> 4.4.3.5 Annotation processing requirements for programmatically added Servlets, Filters and Listeners
>  Resource injection on all components (Servlets, Filters and Listeners) added programmatically or created programmatically, other than the ones added via the methods that takes an instance, will only be supported when the component is a Managed Bean.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list