tracker issue : CF-3041409

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 82805:onServerStop() or onJVMStop()I would like to see the ability to execute something when the server is stopped or the JVM goes down

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Luis Majano / Luis Majano (Luis Majano)

Created: 05/04/2010

Components: Language

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Duplicate ID:	CF-3041204

Problem:

onServerStop() or onJVMStop()I would like to see the ability to execute something when the server is stopped or the JVM goes down. In plain java, you can talk to the runtime class and attach a shutdown hook thread that will be executed once the JVM is being shutdown or goes down. This would be great to intercept at via the Application.cfc or via the administrator, where you can programmatically intercept when the server/jvm is going down. Why? Well, let's say I have a cache engine that needs to spool to disk once the JVM is shutting down. I can use this to spool items to disk so they can survive restarts. maybe I need to advice via JMS to my message brokers that I am going down, so don't send messages my way. There are tons and tons of capabilities here.
Method:


Result:

onServerStop() or onJVMStop()

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041409

External Customer Info:
External Company:  
External Customer Name: Luis Majano
External Customer Email: 7A3D2E124563615A99201549
External Test Config: 05/04/2010

Attachments:

Comments: