This content has been marked as final.
Show 2 replies
-
1. Re: global servlet filter for logging
lylewang Aug 25, 2015 2:17 AM (in response to snijdor)I'm not aware of a "global filter" thing in EAP 6.x but from your description you can use "valve" to do the same (basically the same as "valve" in tomcat)
You can :
1) write a custom valve class(es)
2) package your valve class(es) as a custom module and config it as global module
3) config global valve in JBoss configuration file "standalone.xml"
example of configuring a valve:
-
2. Re: global servlet filter for logging
snijdor Aug 25, 2015 10:14 AM (in response to lylewang)thanks for your detailed answer!
I'll try it, i hope i am able to log the whole request/response (post data, content, ...) with a custom valve, because the predefined valve classes don't provide those functionality.