[jboss-jira] [JBoss JIRA] (WFLY-897) Lifecycle and injections ignored in @ManagedBean dynamic Servlet
Tomaz Cerar (JIRA)
issues at jboss.org
Mon Feb 10 09:35:28 EST 2014
[ https://issues.jboss.org/browse/WFLY-897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12943039#comment-12943039 ]
Tomaz Cerar commented on WFLY-897:
----------------------------------
Cheng can you verify that this issue still exists in WildFly 8?
> 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