开发者

Tomcat thread pool usage schema

开发者 https://www.devze.com 2022-12-09 17:34 出处:网络
I\'m developing servlet filter intended to manage some resources which should be available during servlet processing. Since I\'m not very familiar with the Tomcat, I have some doubt. Is it guaranteed

I'm developing servlet filter intended to manage some resources which should be available during servlet processing. Since I'm not very familiar with the Tomcat, I have some doubt. Is it guaranteed that, for single request, all attached filters and the servlet itself are processed by single (and the same)开发者_运维知识库 thread? In other words: can I assume that FilterChain.doFilter() method doesn't use different thread than its caller?


Yes, this is guaranteed by the servlet specification.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号