On 25/12/2005, at 4:29 AM, Miguel Arroz wrote:

Hi!

I'm generating an URL that is sent by email, using the WOContext.completeURLWithRequestHandlerKey method. I tested this with multiple instances of the app running, and, as I expected, I received something like this:

  http://myServer.com/cgi-bin/WebObjects/MyApp.woa/4/wa/myDirectAction

  Note that the instance number (4) is present.

I killed the instance 4, expecting that the URL would not work any more. Surprisingly, it works! I even tried other numbers (I had 5 instances, and tried numbers like 10 or 11) and it always works.

Is this supposed to work? Shouldn't I need to worry about the instance numbers in this situation? There is no session or state involved, it's just a one-time call.

The instance number is a guide. The adaptor will try that instance first. If it gets no answer (perhaps the instance has stopped, or the number was bogus) it will failover to the next one

For you setup it would be best to just omit the instance number from the URl. That saves the possibility of it waiting through a timeout delay before trying another instance.

Denis Stanton
[EMAIL PROTECTED]


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

This email sent to [email protected]

Reply via email to