RE: death count in Monitor?
RE: death count in Monitor?
- Subject: RE: death count in Monitor?
- From: "Pierre Bernard" <email@hidden>
- Date: Wed, 23 Apr 2003 14:54:23 +0200
- Thread-topic: death count in Monitor?
Now this is odd. Some time ago I wanted to write code that quits my application without causing the death count to be incremented.
To terminate the application I called System.exit(0) with the 0 termnination code to signify normal termination. Thus I hoped for this not to be accounted for as unexpected death, yet it was.
I came to the conclusion that for an application termination not to be considered an unexpected death by WOTask one had to notify the WOTask of the imminent termination before killing the application. Thus I wrote code that specifically does that.
Now don't tell me a nonzero termination code prevents the death from being accounted for.
Pierre.
-----Original Message-----
From: Jonathan Rochkind [mailto:email@hidden]
Sent: Wednesday, April 23, 2003 12:57 AM
To: email@hidden
Subject: death count in Monitor?
What IS the death count in Monitor? What exactly triggers a death being
recorded in Monitor?
I noticed recently that when my Java app terminates itself by calling:
Runtime.getRuntime().exit(1);
That is NOT noted as a death in Monitor, although the instance IS restarted (it's marked auto-restart). But I expected it to be, and would like it to be. It's something my app does in a fatal condition that is not supposed to
occur, I'd like to know when it does. Hmm, is it effected by the argument to exit()? Can anyone clear this up for me?
--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.