Re: Automatic operation at application statup - once for each instance
Re: Automatic operation at application statup - once for each instance
- Subject: Re: Automatic operation at application statup - once for each instance
- From: Mark Morris <email@hidden>
- Date: Thu, 23 Mar 2006 03:39:23 -0600
I think it should be:
-DmainInstance=TRUE
Regards,
Mark
On Mar 23, 2006, at 3:10 AM, François Reboursier wrote:
This seems very seductive, but when I configure my instance and
try to retreive the property ('String isMainInstance =
System.getProperty("mainInstance");' ) all I get is a NULL value...
On Mar 22, 2006, at 15:36, 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:
@baseview.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:
This email sent to email@hidden