[jboss-jira] [JBoss JIRA] (WFLY-941) Dynamic servlet filter destroy method not called

Brian Stansberry (JIRA) issues at jboss.org
Fri Feb 7 23:00:28 EST 2014


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

Brian Stansberry updated WFLY-941:
----------------------------------

    Component/s: Web (JBoss Web)

    
> Dynamic servlet filter destroy method not called
> ------------------------------------------------
>
>                 Key: WFLY-941
>                 URL: https://issues.jboss.org/browse/WFLY-941
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (JBoss Web)
>            Reporter: Cheng Fang
>            Assignee: Remy Maucherat
>
> I added a servlet filter by calling ServletContext.addFilter(name, filterInstance)
> the init method of filterInstance (the instance I created and registered) is called, but its destroy method is not called throughout the life of the webapp, even after undeploy.
> I would expect the init/destroy methods to be symmetric; if one is called, the other should be called too, to release any resources and clean things up.
> For the container-managed filter instance (see AS7-5802), init and destroyed are correctly called.

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