Re: Dynamically Selecting Instances - Best Way?
Re: Dynamically Selecting Instances - Best Way?
- Subject: Re: Dynamically Selecting Instances - Best Way?
- From: wojingo <email@hidden>
- Date: 11 Jun 2004 02:23:44 +0930
On Thu, 2004-06-10 at 21:48, Jonathan Fleming wrote:
> How do I go about finding an active instance or redirecting to one that is
> running if the instance an app is trying to use is not working, times-out or
> something similar.
>
> In my app I code a static method to set up a url that returns to a direct
> action when the app needs to remind a user to register, however, on this
> occasion the instance (always on 1) that it was set up on was down and of
> course the link in the user's email sent them to a 404 page, so how can I
> prepare the app to look for other instances if the main timesout or if down
> or something?
>
> This is an example of the link it sets up (note that there is no instance
> number so the first one is always used - no. 1):
> <a
> href="http://www.myDomain.com/cgi-bin/WebObjects.dll/TMI.woa/wa/registerNewUser";>Click
> this link to setup your new account</a>
>
> Or is there a simpler way to get to the directAction ...registerNewUser
>
> Thanks for any help
> Jonathan :^)
Monitor should do this for you I think. You shouldnt need to do anything
to get this to work correctly. The link above should do the right thing
AFAIK. I think its the adaptors job to determine which instance to send
you to. I assume you must be using the monitor program to run multiple
instances. strange. Where there any other instances running when the 404
occured? sorry I havent been very helpful. meybe there is a monitor
setting that needs to be set/changed/configured.
-
shaun
>
> _________________________________________________________________
> Want to block unwanted pop-ups? Download the free MSN Toolbar now!
> http://toolbar.msn.co.uk/
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.