tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <>
Subject Re: How can I take a webapp "temporarily out of service" using mod_jk?
Date Mon, 23 Jan 2006 22:00:12 GMT
Hi John,

A filter should do the trick for you.  Have it interrogate some value
somewhere (context value? static class? database?) and when it sees a
particular value, redirect to your out of service page.

Since your in a cluster, you have the problem of replicating this "out of
service" flag to all the nodes... a database would be the obvious answer,
but clearly that has performance implications.  You may need some special
URL in your app that sets the flag, properly secured of course, and make
yourself a quick little page that fires it to all nodes.

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
AIM: fzammetti
Yahoo: fzammetti

On Mon, January 23, 2006 4:56 pm, Prout John - jprout said:
> Hi
> I am running a JBoss cluster, using tomcat as the Servlet engine. Apache
> and mod_jk provide load-balancing of requests over the machines in the
> cluster
> I need to be able to replace all the URLs in the webapp with a
> "Temporarily out of service" page during maintenance, and I need to do
> this without making any permanent Apache configuration changes and
> without restarting Apache (Operations is very reluctant to restart
> Apache).
> Does anyone know a way to do this?
> I think there may be a way to use the controls on the mod_jk status page
> to redirect all requests for a webapp to a different URL ( the "Route
> Redirect" input) but this is probably wishful thinking - even if does
> allow me to redirect requests, it would probably apply to all the
> webapps in the cluster, which wouldn't meet the requirement. The status
> page teases me by listing all the JkMounts and JkUnmounts, but doesn't
> allow me to change them; adding a JkUnmount dynamically would be a good
> solution.
> Any Ideas?
> John
> *************************************************************************
> The information contained in this communication is confidential, is
> intended only for the use of the recipient named above, and may be
> legally privileged.
> If the reader of this message is not the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited.
> If you have received this communication in error, please resend this
> communication to the sender and delete the original message or any copy
> of it from your computer system.
> Thank you.
> *************************************************************************

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message