On Wed, Mar 12, 2014 at 11:58 AM, Leo Donahue <donahu...@gmail.com> wrote:

> On Wed, Mar 12, 2014 at 11:51 AM, Leo Donahue <donahu...@gmail.com> wrote:
>
>> On Wed, Mar 12, 2014 at 11:28 AM, John Smith <tomcat.ran...@gmail.com>wrote:
>>
>>> Is there a straightforward way to toggle or add something in Tomcat, in
>>> the
>>> event a webapp is intentionally taken 'offline for maintenance"? The user
>>> would receive the same single notification page saying as much, for any
>>> and
>>> all requests.
>>>
>>> Tomcat 7.0.42
>>>
>>
>> What would respond to the user's request if the web app they asked for is
>> down?  All you are going to get is a not found error which will be handled
>> by your ROOT web application.
>>
>
> I wonder if parallel deployment is an option for you?  Maybe someone else
> will have a better idea.
>
> webapp#1.war could be your notice web app, while webapp#2.war could be
> your normal site.
>
> Deleting webapp#2.war would make requests fall back to your web app that
> notifies the user the site is down.
>
> Redeploying an updated webapp#2 would then override the the other one.
>

Redeeming myself....

Use two # symbols.  webapp.war  would be an earlier version of webapp##1.war

Read this:
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment

Reply via email to