tracker issue : CF-3041408

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

Bug 82804:(Watson Migration Closure)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/Deferred/

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: Minor / Most users will encounter

Locale/System: English / Platforms All

Vote Count: 0

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 core 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 that can be exposed if I can hook into the JVM's shutdown hook via CF natively.I can do this via java, class loading, but it gets tedious, I would prefer a pure CFML implementation.
Method:


Result:

onServerStop() or onJVMStop()

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

Watson Bug ID:	3041408

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

Attachments:

Comments: