On May 24, 2006, at 4:51 PM, Papai Roy wrote:
Hi,
For one of our application (WebObjects based) we want to issue the
refuse new session command manually. Is there any way we can do it? I
was thinking of looking into the Monitor code to see how it is
implemented but lost my way in that.
That is an easy one. Call application().refuseNewSessions(true)
"Controls whether this application instance will create a session
when it receives an HTTP request from a new user. If aVal is true,
the application does not create new sessions; when it receives a
request from a new user, it refuses that request, and the adaptor
must try to find another application instance that can process the
request. If aVal is false, the application creates new sessions.
false is the default.
This method is used with setMinimumActiveSessionsCount to gracefully
shut down application instances. Use setMinimumActiveSessionsCount to
set the active session minimum to a certain number. When the number
of active sessions reaches the number that is set and
isRefusingNewSessions returns true, the application terminates."
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-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [email protected]