• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Direct Action URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Direct Action URL


  • Subject: Re: Direct Action URL
  • From: Denis Stanton <email@hidden>
  • Date: Sun, 25 Dec 2005 08:29:44 +1300


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@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Direct Action URL (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Direct Action URL
  • Next by Date: Dumb Question: Automatically running wotaskd and javamonitor?
  • Previous by thread: Direct Action URL
  • Next by thread: Re: Direct Action URL
  • Index(es):
    • Date
    • Thread