[jboss-jira] [JBoss JIRA] (AS7-5820) Dynamic servlet filter destroy method not called
Cheng Fang (JIRA)
jira-events at lists.jboss.org
Tue Oct 23 10:47:02 EDT 2012
[ https://issues.jboss.org/browse/AS7-5820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheng Fang updated AS7-5820:
----------------------------
Description:
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.
> Dynamic servlet filter destroy method not called
> ------------------------------------------------
>
> Key: AS7-5820
> URL: https://issues.jboss.org/browse/AS7-5820
> Project: Application Server 7
> Issue Type: Bug
> Components: Web
> Affects Versions: 7.2.0.Alpha1
> 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.
--
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