Put an HTTP server in front of it. When you use the new server wizard, it will provide a pretty nice log format. One of the things I've added to one of the busier HTTP servers I manage is the execution time. This is nice if you want to troubleshoot certain requests. To add that, use this log format:
LogFormat "%h %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" combined
There probably isn't a native plug-in for jBoss but you can set up a proxy to do this. You'll need to make jBoss listen on a different port and create an HTTP server on the port it is currently listening on.
Once that is done, add the following to your httpd.conf file:
LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
ProxyReverse On
ProxyPass /
http://localhost:<jBoss port>/
ProxyPreserveHost On
If you have a lot of static data (images, css, etc..), you can easily configure the HTTP server to serve them instead of jBoss which will improve site performance and scalability (the app server is going to use a thread for each of these items so the more you off load to something else, the more real work it can do). There are a couple of ways to do this. You can either specify a list of virtual directories (these would match the app context) to proxy (my example proxies the entire site) or use a special syntax on ProxyPass that excludes certain directories. You can read more about ProxyPass at
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypass. There are several other proxy settings you may need to specify depending upon what your app requires. The link I gave lists them all.
Matt
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Wednesday, March 04, 2009 6:27 PM
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] log all traffic go to our web app server
does any one know if there is a way to catch all the traffics send to
our web-apps server? We uses JBOSS.
thanks
As an Amazon Associate we earn from qualifying purchases.