Got it, thanks.
So if I want approach to work cross different application server, i
need to use Filter.
jacksuyu@gmail.com said:
>So if I want approach to work cross different application server, i
>need to use Filter.
Yep. 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.

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)