tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Site down for maintenance senario
Date Wed, 12 Mar 2014 21:15:05 GMT
Leo Donahue wrote:
> On Wed, Mar 12, 2014 at 11:58 AM, Leo Donahue <donahulf2@gmail.com> wrote:
> 
>> On Wed, Mar 12, 2014 at 11:51 AM, Leo Donahue <donahulf2@gmail.com> wrote:
>>
>>> On Wed, Mar 12, 2014 at 11:28 AM, John Smith <tomcat.random@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
> 

I was going to suggest to replace the normal myApp.war by one named similarly, but 
returning a "on maintenance" page.
But the solution above is cleverer.
Bonus points.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message