• 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: Instance recycle itself after a specific load point is reached
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instance recycle itself after a specific load point is reached


  • Subject: Re: Instance recycle itself after a specific load point is reached
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 7 Dec 2006 17:13:55 -0800


On Dec 7, 2006, at 5:08 PM, Sacha Michel Mallais wrote:

On Dec 7, 2006, at 4:57 PM, Tanmoy Roy wrote:

I wanted to know if there is anything available in the WebObjects that
will allow the instance to recycle itself after a specific load point
is reached.


Is something available in the monitor where in I can specify that
after an instance gets a specified number of session it will recycle
gracefully and automatically even though the scheduled down-time is
not reached.

I could not find anything that helps in the net. Any pointer would be
of great help.

You'll have to implement that one yourself, there is no built-in way to do that. Shouldn't be too hard though: subclass Thread, monitor Application.activeSessionCount() and terminate when you hit your limit.

Even easier than that. Just override dispatchRequest and add this:

...
if (activeSessionCount() > sessionLimit) refuseNewSessions(true);
...

But it does sound like you are hacking around bugs in your code if you need to do this.


Chuck

--

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


References: 
 >Instance recycle itself after a specific load point is reached (From: "Tanmoy Roy" <email@hidden>)
 >Re: Instance recycle itself after a specific load point is reached (From: Sacha Michel Mallais <email@hidden>)

  • Prev by Date: Re: Instance recycle itself after a specific load point is reached
  • Next by Date: Re-[SOLVED] why not true when testing for equality with a null query
  • Previous by thread: Re: Instance recycle itself after a specific load point is reached
  • Next by thread: Re: _EOCheapCopyMutableArray bug!
  • Index(es):
    • Date
    • Thread