after method in Tomcat 7 clear the threadlocal resources if any
RuntimeException is thrown in the chain
-------------------------------------------------------------------------------------------------------
Key: GERONIMO-5821
URL: https://issues.apache.org/jira/browse/GERONIMO-5821
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: Tomcat
Affects Versions: 3.0-M2, 3.0
Reporter: Ivan
Assignee: Ivan
Fix For: 3.0-M2, 3.0
We use BeforeAfter in the Tomcat 7 for various usage, e.g. OWBContext, Policy.
Some of the BeforeAfter implementation will attach something to the threadLocal
in the before method, and remove it in the after method. But in the
BeforeAfterValve, we do not have a way to make sure the after method is called.
The possible scenarios are
a. Expcetion is thrown in the next valve invocation
b. RuntimeException is thrown in the before/after invocation chain
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira