[jboss-jira] [JBoss JIRA] (WFLY-941) Dynamic servlet filter destroy method not called
Tomaz Cerar (JIRA)
issues at jboss.org
Mon Feb 10 09:33:29 EST 2014
[ https://issues.jboss.org/browse/WFLY-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12943038#comment-12943038 ]
Tomaz Cerar commented on WFLY-941:
----------------------------------
Cheng can you verify that this issue still exists in WildFly 8?
> 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