• 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: Notification when WOApp is stopped from Monitor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification when WOApp is stopped from Monitor?


  • Subject: Re: Notification when WOApp is stopped from Monitor?
  • From: email@hidden
  • Date: Fri, 30 Sep 2005 15:47:42 +0200


You want to override WOApplication.terminate().

An application that is stopped gracefully using Monitor is set to refuse new sessions and terminates when the session count goes below a given threshold. With the stop button in Monitor an application is just terminated. Aanyways, all normal terminations go through WOApplication.terminate().

You may also use Java shutdown hooks. See java.lang.Runtime.addShutDownHook(Thread).

If you really, really, want to catch even hard JVM crashes, you will have to set up a watchdog application

Pierre

webobjects-dev-bounces+pierre.bernard=email@hidden wrote on 09/30/2005 03:12:15 PM:

> Hi all,
>
> is there any callback method invoked when an application is stopped from
> Monitor?
> I need to stop a concurrent process in it's thread before the appliaction
> finihes.
> WOApplication.finalize does not the job.
> The application does not execute the RR loop, because it's running headless
> the most time, so i can't use WOApplication.isTerminating either.
> Is there a notification handler i should know?
>
> Thanks for any insight
>
> Wolfram
>
>
>  _______________________________________________
> 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
>


**********************************************************************
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
**********************************************************************
 _______________________________________________
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: 
 >Notification when WOApp is stopped from Monitor? (From: Wolfram Stebel <email@hidden>)

  • Prev by Date: Notification when WOApp is stopped from Monitor?
  • Next by Date: Re: WO Example does not run
  • Previous by thread: Notification when WOApp is stopped from Monitor?
  • Next by thread: Vending complex web services with WO/Axis?
  • Index(es):
    • Date
    • Thread