Re: Direct Action URL
Re: Direct Action URL
- Subject: Re: Direct Action URL
- From: Chuck Hill <email@hidden>
- Date: Wed, 28 Dec 2005 11:38:12 -0800
Hi Miguel,
On Dec 24, 2005, at 7: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 think that means that there was a session when the URL was
generated. As sessions are unique to instances, WO will add the
instance number even if that particular direct action does not
require it.
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.
Yes.
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.
It would be cleaner to not have it, but it will do no harm. It is
just a suggestion to the woadaptor about which instance to try first.
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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