Yes, that used to puzzle me.

How are you deploying? My deployments are seriously old-skool, 4.x- style, with Apache and mod_WebObjects. mod_WebObjects can be configured in three ways to know what applications and instances are available (see the matching apache.conf). One is to poll the local wotaskd over HTTP (default), another is to read an XML file, and the third is to listen to multicast broadcasts from wotaskd running on multiple hosts.

I've never used the multicast option but I expect it suffers from the same problem the HTTP option does: no information is returned describing applications for which there are no running instances; so, if there are no running instances and you want the redirection URL, the redirection URL is not available.

In my deployments I use the the XML file option. An easy way of generating suitable XML is to wait until all instances are running and do '/usr/bin/curl http://localhost:1085/WebObjects/wotaskd.woa/wa/ woconfig' . A good place to put such XML is /Library/WebObjects/ Configuration/WOConfig.xml , and you will need to edit mod_WebObjects's apache.conf file.

Of course in the 5.4.x era everything could be completely different....

On 7 Nov 2012, at 07:37, Paul Hoadley wrote:

Hello,

I'm looking to implement a simple "downtime" page for an application —if all instances are off, the user should see this page. For a moment, I thought the "Redirection URL" in the application's settings would handle this for me, but it doesn't seem to. The semantics there seem to be quite specific, with "an instance fails to respond to a direct request" entailing that there exists an instance at all. Certainly, testing shows that "No instance available" is returned instead of the redirection URL in the case where there are zero instances running.

So how do people handle this? Looks like I would need to manually create an Apache redirect/rewrite and bounce Apache, which seems labour intensive.


--
Paul Hoadley
http://logicsquad.net/



---
Regards Patrick
OneStep Solutions (Research) LLP
www.onestep.co.uk

This email, including any attachments, is confidential and intended solely
for the person or organisation to whom it is addressed. If you are not the
intended recipient you must not disseminate, distribute or copy any part of this email nor take any action in reliance on it.

If you have received this in error please notify the sender immediately by
email or phone +44 (0)1702 426400 and delete this email and any attachments
from your system.

Email transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message which arise as a result of email transmission. If verification
is required please request a hard-copy version.

OneStep Solutions LLP is registered in England and Wales under registration
number OC337173 and has its registered office at 44 The Pantiles, Tunbridge
Wells, Kent, TN2 5TN.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to