honzeland

记录点滴。。。

导航

<2010年5月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

留言簿(4)

随笔分类

文章分类

收藏夹

随笔档案

文章档案

阅读排行榜

评论排行榜

常用链接

统计

Famous Websites

Java

Linux

P2P

最新评论

Tomcat Architecture Diagram

zz from http://marakana.com/forums/tomcat/general/106.html


Valve and Filter:
"Valve" is Tomcat specific notion, and they get applied at a higher level than anything in a specific webapp. Also, they work only in Tomcat.

"Filter" is a Servlet Specification notion and should work in any compliant servlet container. They get applied at a lower level than all of Tomcat's
Valves.

However, consider also the division between your application and the application  server. Think whether the feature you're planning is part of your application, or is it rather a generic feature of the application server, which could have uses in other applications as well. This would be the correct criteria to decide between Valve and Filter.

Order for filter: The order in which they are defined matters. The container will execute the filters in the order in which they are defined.

posted on 2010-05-10 10:39 honzeland 阅读(1515) 评论(0)  编辑  收藏 所属分类: JavaWeb


只有注册用户登录后才能发表评论。


网站导航: