Chances are you are doing port forwarding from Apache into your
servlet container (Tomcat or Jetty).

For example (this is from tapestry.formos.com).

httpd.conf:

ProxyPass /bamboo http://localhost:8085/bamboo
ProxyPassReverse /bamboo http://localhost:8085/bamboo

Change this configuration to forward to a different location;
alternatey, disable this configuration so that the real /bamboo folder
is exposed, complete with a "We're fixing things!" message page,
styled to look like your application.  Meanwhile, bounce Tomcat or
do whatever.

I'd say that if your application is so unstable that you need to have
a "we're upgrading" page, then you probably want to subtract a few
layers (Tomcat, Tapestry, your app) from the equation.



On Tue, Feb 10, 2009 at 7:00 PM, daniel joyce <[email protected]> wrote:
> I'm working a simple out of the box community website system using
> Tapestry, H2 and JDO ( Data Nucleus ). I want to provide a way for the
> admin to click a button and have all subsequent requests for content
> come up "This website is undergoing maintenance, please try again
> later".
>
> There is a lot of magic in the tapestry framework ( specially named
> classes for setting up services, etc ), and talks about command
> chains, and other things. The documentation provides a basic overview,
> but I can't find any info on how these things are built, or how to
> inject my own behaviour.
>
> I think I need to inject a custom Dispatcher in the Master Dispatcher
> Service, but I can't find any docs on how to do this. My plan is this
> dispatcher would check to see if this flag were active, and if so,
> redirect all requests to the "undergoing maintenance" page.
>
> Very nice framework, just trying to figure out where all the magic is.
>
> -Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to