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

Cheng Fang (JIRA) jira-events at lists.jboss.org
Mon Sep 10 12:14:33 EDT 2012


Cheng Fang created AS7-5524:
-------------------------------

             Summary: Lifecycle and injections ignored in @ManagedBean dynamic Servlet
                 Key: AS7-5524
                 URL: https://issues.jboss.org/browse/AS7-5524
             Project: Application Server 7
          Issue Type: Bug
          Components: Web
    Affects Versions: 7.2.0.Alpha1
            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