1 of 1 people found this helpful
Perhaps the "RequestDumperValve" is what you want.
$JBOSS_HOME/server/XXX/deploy/jboss-web.deployer/server.xml (JBoss 4)
$JBOSS_HOME/server/XXX/deploy/jbossweb.sar/server.xml (JBoss 5)
Thank you for your effort to help me!
Unfortunately RequestDumperValve is only for HTTP headers, not for the body of HTTP responses.
Moreover, it seems to cause problems with I18N in query string...
Hmm...sorry missed that.... really thought that i logged at least the HTTP body.
If you look at the code for the RequestDumperValve it's quite straight foward. You should easlily be able to create your own impl. that can log the data (i suggest by first checking the content type so you don't log a lot of binary data
Of course you should be able to run whatever sniffer sofware on the server instead. (wireshark is nice).
Thank you. Our traffic goes through an Apache server, we try to log the traffic there with JkRequestLogFormat
It is not clear, if mod_jk is able to to log whole HTTP responses.
Your best bet is to use "tcpdump" on the server, and the suggested tool "Wireshark", above.