• 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: Automatic operation at application statup - once for each instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatic operation at application statup - once for each instance


  • Subject: Re: Automatic operation at application statup - once for each instance
  • From: Pierre Bernard <email@hidden>
  • Date: Wed, 22 Mar 2006 16:43:32 +0100

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@hidden)
Help/Unsubscribe/Update your Subscription:
40baseview.com


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________ 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: 
 >Automatic operation at application statup - once for each instance (From: François Reboursier <email@hidden>)
 >Re: Automatic operation at application statup - once for each instance (From: Doug Andrews <email@hidden>)

  • Prev by Date: JSModalWindow and params for the page
  • Next by Date: Re: Deployment error not in Dev?
  • Previous by thread: Re: Automatic operation at application statup - once for each instance
  • Next by thread: Re: Automatic operation at application statup - once for each instance
  • Index(es):
    • Date
    • Thread