users@glassfish.java.net

Re: Send a maintenance page instead of 404 error

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Mon, 24 Oct 2011 15:37:23 -0400

On Oct 24, 2011, at 10:37 AM, forums_at_java.net wrote:
> I can't create a static URL for each application. Each application has its
> name as part of the url's parameters.

Then try the second option I listed. When a request comes in for an app that is no longer available, the server will default to your new "under maintenance" app instead:

> 2. Set a default module for the virtual server in your config/Virtual Servers panel in admin console. You can set this to some small web app you deploy that just contains a maintenance page. Then disable the original application. When it's time to enable the app again, you may have to set this default module to blank first.

Cheers,
Bobby