Ah, sorry, didn't get that. I was suggesting servlet filters. I don't frankly know anything about Apache filters... if it's like a servlet filter but before the request hits the app server, it sounds like it could do the trick in the same basic way though.
-- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Mon, January 23, 2006 5:06 pm, Prout John - jprout said: > The problem with this solution is that the webapp really is out of > service and unable to serve any pages - it's Apache that will have to > serve the "Out of service" page; that's why I'm looking at mod_jk. > > Or were you thinking of an Apache filter, rather than a servlets filter? > I don't know much about Apache filters > > Thanks - John > > -----Original Message----- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Monday, January 23, 2006 2:00 PM > To: Tomcat Users List > Cc: users@tomcat.apache.org > Subject: Re: How can I take a webapp "temporarily out of service" using > mod_jk? > > 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 > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]