If I'm not mistaken the maintenance operation could be hit more then once
when called from a DirectAction if timeouts have happened during generating
response for DA. And so at the least the maintenance operation should be
started in separate thread in DA to avoid timeouts.

Eugene Khablov

On 3/22/06 6:43 PM, "Pierre Bernard" <[EMAIL PROTECTED]> wrote:

> Integrate your maintenance operations in a direct action.
> Call that from a crontab script using curl.
> Let the load balancer decide which instance to hit.
> 
> Pierre
> 
> 
> On Mar 22, 2006, at 3:36 PM, Doug Andrews wrote:
> 
>> You could add an argument into JavaMonitor for one instance but not
>> the others.
>> (-mainInstance TRUE)
>> Retrieve this property within your code with System.getProperty
>> ("mainInstance")
>> 
>> 
>> 
>> 
>> On Mar 22, 2006, at 8:32 AM, François Reboursier wrote:
>> 
>>> Hi list,
>>> 
>>> I perform some maintenance operations at application startup by
>>> catching the WOApplication.ApplicationDidFinishLaunchingNotification
>>> It works fine in testing, but in deployment mode the maintenance
>>> code is called many times (once for each instance): this is
>>> perfectly logical.
>>> 
>>> Is there a way to get the current instance number (to only
>>> perform the maintenance in instance #1 ) ?
>>> is there an other way to call this method one time, and one time
>>> only ?
>>> 
>>> Thanks for your ideas!
>>> 
>>> Regards,
>>> François _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/doug_andrews%
>>> 40baseview.com
>>> 
>>> This email sent to [EMAIL PROTECTED]
>>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects-
>> lists%40houdah.com
>> 
>> This email sent to [EMAIL PROTECTED]
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/vesper%40mactime.ru
> 
> This email sent to [EMAIL PROTECTED]
> 
> 


---
Eugene Khablov
Media-agency DesignMaximum

Tel: +7 863 264-82-11
Fax: +7 863 264-52-29
Web: http://www.demax.ru
Web: http://www.mactime.ru




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to