-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello cgogineni,

On 04/11/2011 07:58 PM, cgogineni wrote:
> 
> I am using apache + mod_jk + jboss for load balancing. Everything is
> configured and working properly. 

Glad to hear that. :)

> mod_jk ping's JBOSS server to check the status of the server. 
> 
> But, I want to configure apache to hit a html/jsp in my application to check
> the status. 
> 
> The reason for this is, when JBOSS is running and my application is not
> deployed, then apache still uses this node for load balancing and a 404
> error page is displayed to the user. 

You cannot specify a test JSP page as this is more expensive than doing
a cping/cpong. An option might be another functionality: mod_jk allows
you to configure a node as "disabled" or "stopped", if a worker is
disabled only requests with a session on this node are sent to this
worker, if a worker is stopped, no requests are sent to it. You can
alter the worker state using the mod_jk web GUI (aka mod_jk status
worker). If you want to deploy or undeploy just stop the appropriate worker.

The mod_jk config option fail_on_status (see
http://tomcat.apache.org/connectors-doc/reference/workers.html) might
look helpful, but I would strongly discourage you from using it for a
HTTP 404, because you will run into trouble if someone mistypes a URL or
some embedded content (i.e. /favicon.ico) is not found.

For a detailed discussion about mod_jk the tomcat-users list
(us...@tomcat.apache.org) is a better place to ask.

Best regards,
- -- 
Thomas Freitag
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2jRgsACgkQGE5pHr3PKuUUpwCfYCrSrLrYE2Gizkf8GKIsmWfZ
0T4AmQH7ifoEBnNd63Hq9e5liY7klZxo
=9y+n
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to