Hi! Well, I finally have some time today at work to do this. Sure enough this does work.
Attached is my application.cfc file. This is a template that I grabbed from Ben Nadel here: http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm I then just put in a few writes to a log file for each section. Here is the output: {ts '2012-02-20 09:06:28'}: Application Starting {ts '2012-02-20 09:06:28'}: Session Starting {ts '2012-02-20 09:06:28'}: Request Starting {ts '2012-02-20 09:06:28'}: /test/index.cfm Requested {ts '2012-02-20 09:06:28'}: Request Ended {ts '2012-02-20 09:06:51'}: Session Ending {ts '2012-02-20 09:06:51'}: Application Ending The Session and Application Ending was when I right clicked on the OpenBD.Local Icon and said exit. I also tried this on a Tomcat instance and it worked beautifull there. Thanks for pointing this out! Now I'm getting even more excited to try out Application.cfc and see what other fun tricks I can find! :) On Sat, Feb 18, 2012 at 10:42 PM, Matthew Woodward <[email protected]>wrote: > On Sat, Feb 18, 2012 at 8:07 PM, Alan Holden <[email protected]> wrote: > >> ** >> I wonder if OnApplicationEnd might rely more on the application's own >> internal timeout setting or event trigger, rather than having the luxury to >> do all manner of work - when it's external container is applying some >> forced close like that. >> > > Right, I was wondering the same thing--if you kill -9 (or some equivalent) > the servlet container then I don't think you could expect that to trigger > OnApplicationEnd() at the OpenBD level. > > >> >> I have no idea myself... just being curious out loud. Me thinks some >> experiment's afoot... >> > > Yep. Simple enough to test. I'll get on it tomorrow if we don't have the > answer by then. > > -- > Matthew Woodward > [email protected] > http://blog.mattwoodward.com > identi.ca / Twitter: @mpwoodward > > Please do not send me proprietary file formats such as Word, PowerPoint, > etc. as attachments. > http://www.gnu.org/philosophy/no-word-attachments.html > > -- > online documentation: http://openbd.org/manual/ > google+ hints/tips: https://plus.google.com/115990347459711259462 > http://groups.google.com/group/openbd?hl=en > > Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012 > -- online documentation: http://openbd.org/manual/ google+ hints/tips: https://plus.google.com/115990347459711259462 http://groups.google.com/group/openbd?hl=en Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012
application.cfc
Description: Binary data
