Re: OT, WO related...
Re: OT, WO related...
- Subject: Re: OT, WO related...
- From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
- Date: Mon, 19 Apr 2004 16:01:36 -0500
Ondra Cada, email@hidden, wrote:
>
I do humbly apologize for an offtopic, but I need a very simple thing
>
in WebObjects, and email@hidden does not seem to run at
>
the moment.
Apple has its own WebObjects dev list as well:
<
http://lists.apple.com/mailman/listinfo/webobjects-dev>
I subscribe to both.
>
How one finds the application instance number from a running code?
WORequest.applicationNumber()
>
It's not possible to use the request, for the code (which needs to know
>
the instance under which it runs) is launched directly from the
>
Application constructor.
A running instance is only very loosely bound to the webserver adapter,
which assigns the instance number. Specifically, the instance number is
handed to the instance by the webserver adapter only at request time, so
at least one request needs to be fed to the instance before it can know
its instance number.
The rules are different for development instances, of course (those with
self-assigned negative instance ids).
| Jonathan 'Wolf' Rentzsch
http://rentzsch.com
| Red Shed Software
http://redshed.net
| "better" necessarily means "different"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.