[jboss-jira] [JBoss JIRA] (AS7-5536) servlet lifecycle interceptor methods ignored when declared in web.xml

Cheng Fang (JIRA) jira-events at lists.jboss.org
Tue Sep 11 14:41:32 EDT 2012


Cheng Fang created AS7-5536:
-------------------------------

             Summary: servlet lifecycle interceptor methods ignored when declared in web.xml
                 Key: AS7-5536
                 URL: https://issues.jboss.org/browse/AS7-5536
             Project: Application Server 7
          Issue Type: Bug
          Components: Web
    Affects Versions: 7.2.0.Alpha1
            Reporter: Cheng Fang
            Assignee: Remy Maucherat


web.xml declares post-construct and pre-destroy methods, but are not invoked during the servlet lifecycle.

{code:xml}
  <post-construct>
    <lifecycle-callback-class>test.TestServlet</lifecycle-callback-class>
    <lifecycle-callback-method>ps</lifecycle-callback-method>
  </post-construct>
  <pre-destroy>
    <lifecycle-callback-class>test.TestServlet</lifecycle-callback-class>
    <lifecycle-callback-method>pd</lifecycle-callback-method>
  </pre-destroy>
{code}

The servlet class itself does not contain any @PostConstruct or @PreDestroy methods.



--
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