× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.