[
https://issues.jboss.org/browse/AS7-5820?page=com.atlassian.jira.plugin.s...
]
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.
For the container-managed filter instance (see AS7-5802), init and destroyed are correctly
called.
was:
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.
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