You should be able to create a Filter (extend javax.servlet.Filter)
which you then add to the web.xml. It will pass you the request/
response objects before the servlet/services are invoked to handle
them. Using this you can filter out most responses to return a
maintenance page, but allow certain IP's to pass through (typically
all the localhost IPs as well as your own).
On Oct 13, 12:24 pm, Arvind Rao <
arvindrao....@gmail.com> wrote:
> Hello there
>
> I have a Java-based app hosted on GAE. I want to schedule daily downtime for
> my app to clean up the datastore.
>
> a) Is there any way I can bring down the app (i.e. stop serving requests
> from users and cron jobs), so that I can do a manual clean up using the
> Datastore Viewer or Admin? Right now if I disable the app, I'm not allowed
> to - "*Sorry, that operation is not allowed while the application is
> disabled.*".