Re: onApplicationStart and cfmail, when doess server start?

2014-04-02 Thread morchella
yeah, i thought it would be some thing every one but me has done. a simple email to alert you that the server has started. we have diff monitering in place, but i cant touch it. thanks a bunch. -m On Tue, Apr 1, 2014 at 2:00 PM, Bobby bo...@acoderslife.com wrote: The next thing that comes to

Re: onApplicationStart and cfmail, when doess server start?

2014-04-01 Thread John M Bliss
ApplicationStart does not fire until the Application is hit. You're looking for onServerStart. On Tue, Apr 1, 2014 at 11:31 AM, morchella morchella.delici...@gmail.comwrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or

Re: onApplicationStart and cfmail, when doess server start?

2014-04-01 Thread Rodney Enke
That is correct behavior. An application does not start until a page within its scope is requested. You have a few options though. Use onServerStart (CF 9+). Use another server to monitor it. Use a third party program such as FusionReactor. I highly recommend it and it's well worth the money

Re: onApplicationStart and cfmail, when doess server start?

2014-04-01 Thread Bobby
The behavior you explained is expected. onApplicationStart() isn¹t triggered until the first request to the application. Check out onServerStart and Server.cfc http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS7AC9408A-1AC6-4ab7-9C8 E-CF1DA8FCA16D.html On 4/1/14, 11:31 AM, morchella

Re: onApplicationStart and cfmail, when doess server start?

2014-04-01 Thread morchella
thanks guys! i was unfamilar with onServerStart. looking now! Much appreciated! On Tue, Apr 1, 2014 at 11:44 AM, Bobby bo...@acoderslife.com wrote: The behavior you explained is expected. onApplicationStart() isnšt triggered until the first request to the application. Check out

Re: onApplicationStart and cfmail, when doess server start?

2014-04-01 Thread morchella
looks like onServerStart is turned off. i cant change that on our server. On Tue, Apr 1, 2014 at 11:49 AM, morchella morchella.delici...@gmail.comwrote: thanks guys! i was unfamilar with onServerStart. looking now! Much appreciated! On Tue, Apr 1, 2014 at 11:44 AM, Bobby

Re: onApplicationStart and cfmail, when doess server start?

2014-04-01 Thread Bobby
The next thing that comes to mind is to parse the CF server.log file for the instance you are targeting. There are log entries for stopping and starting in there. ButŠ I¹m guessing you are wanting this to be used as an alert not post-portem investigation. There are plenty of infrastructure

Re: onApplicationStart

2010-08-04 Thread Matt Coldfusion
This doesnt work for me and I cannot work out why? I run onApplicationStart in application.cfc and all my old application variables still exist, i have to restart the service all the time but i can't do this on my shared server. What is another way besides creating a temp file to

Re: onApplicationStart

2010-08-04 Thread Raymond Camden
That's by design. CF knows when an application starts. You can 'force' it a few ways. 1) In CF9, within onRequestStart, add a check for url.init (or some such), and run applicationStop(), you then need to reload the current request. 2) Or even simpler, within onRequestStart, add a check for a

Re: onApplicationStart

2010-08-04 Thread Eric Cobb
Here's the poor mans answer to applicationStop(), it works on CF7 CF8. |||cfset| |application.setIsInited(false) / | See Mister Dai for a more detailed explanation: http://misterdai.wordpress.com/2010/06/11/cf-flag-application-to-run-onapplicationstart/ | | Thanks, Eric Cobb ECAR

Re: onApplicationStart

2010-08-04 Thread Eric Cobb
Huh, not sure what happened with the formatting on that. Here you go: cfset application.setIsInited(false) / Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Eric Cobb wrote: Here's the poor mans answer to applicationStop(), it works on CF7 CF8.

Re: onApplicationStart

2010-08-04 Thread Larry Lyons
Something a bit simpler may be to use the ApplicationStop function. From QuickDocs: http://cfquickdocs.com/cf9/?getDoc=applicationstopDescription Stops or resets the current application. The application is restarted on the next request to the application. As a caveat, its CF9 only so far.

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread Will Tomlinson
I am new to ColdFusion and I am having trouble understanding what is the Difference between onApplicationStart method and onRequestStart method other than the Scope. For Example what does it mean by Application? First time a onapplicationstart() runs when the first cfm or cfc is executed in

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread Steve Nelson
OnApplicationStart runs the first time ANY user hits your site. It's commonly used for setting application variables that rarely change. Things like datasources are a good place for that or initializing a ton of cfobjects. I commonly put a cfif statement in my onRequest event to reset the

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread s. isaac dealey
I am new to ColdFusion and I am having trouble understanding what is the Difference between onApplicationStart method and onRequestStart method other than the Scope. For Example what does it mean by Application? First time a user comes to your site? Does it only run once? I tried to set a

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread Sherif Abdou
http://VadexFX.com http://Sherifabdou.com - Original Message - From: s. isaac dealey [EMAIL PROTECTED] To: cf-talk cf-talk@houseoffusion.com Sent: Sunday, September 28, 2008 8:42 PM Subject: Re: onApplicationStart Vs onRequestStart I am new to ColdFusion and I am having trouble

Re: onApplicationStart Vs onRequestStart

2008-09-28 Thread James Holmes
The whole point of putting variables into the application scope is to cache them so you don't have to set them on every request. The reason your variables didn't get set after you added new ones was that your application had already started; OnApplicationStart doesn't run on every request.

Re: onApplicationStart

2008-01-03 Thread Brian Kotek
You can just call onApplicationStart() again, but be aware that it won't be thread safe as it is when the application starts up. On Jan 3, 2008 3:01 PM, Adkins, Randy [EMAIL PROTECTED] wrote: Question: When using the onApplicationStart within an Application.cfc, lets say I wanted to restart

Re: onApplicationStart

2008-01-03 Thread Michael Dinowitz
You can have a cfif looking for a url variable such as reset. Inside the CFIF you can recall the onapplicationstart method cfif structkeyexists(url, 'reset') cfset onapplicationstart() /cfif Personally, I'd go for a separate reset page. Why have a CFIF if it will rarely, if ever used. On Jan

Re: onApplicationStart

2008-01-03 Thread Will Tomlinson
What is another way besides creating a temp file to explicitly reset those variables? Is there a way to make the Application expire and restart (sort of speak)? Here's what I use: cffunction name=onRequestStart returntype=void output=false cfif structKeyExists(url,reinitApp) cflock

Re: onApplicationStart

2008-01-03 Thread Barney Boisvert
No, not really. I put all my initialization logic in a separate method of Application.cfc, and then invoke that method from onRequestStart if certain conditions are met (usually the presence of a reloadApplication URL param that is set to a specific value). Note that this doesn't expire the

RE: onApplicationStart

2008-01-03 Thread Adkins, Randy
Sweet.. thanks -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 3:00 PM To: CF-Talk Subject: Re: onApplicationStart What is another way besides creating a temp file to explicitly reset those variables? Is there a way to make

Re: onApplicationStart

2008-01-03 Thread Mike Chabot
You can try putting most of your OnApplicationStart code into cfinclude files and call those cfinclude file in some other reload page. This has an advantage over calling OnApplicationStart again if there are some things that OnApplicationStart does that you don't want to do a second time, such as

Re: onApplicationStart

2008-01-03 Thread Raymond Camden
Just note though - that lock isn't really necessary if all you are doing is setting a bunch of simple values in the app scope. And by simple I mean things that dont' need to be single threaded. A CFC stored in the app scope is most likely fine as well. On Jan 3, 2008 1:59 PM, Will Tomlinson

Re: onApplicationStart

2008-01-03 Thread Ian Skinner
You can also temporiarly set the session timeout to 0 or some other really short time, let the application expire, then return the timeout to the desired value. ~| Adobe® ColdFusion® 8 software 8 is the most important and

Re: onApplicationStart

2008-01-03 Thread Sean Corfield
On Jan 3, 2008 12:24 PM, Raymond Camden [EMAIL PROTECTED] wrote: Just note though - that lock isn't really necessary if all you are doing is setting a bunch of simple values in the app scope. And by simple I mean things that dont' need to be single threaded. A CFC stored in the app scope is

Re: onApplicationStart cftry

2007-01-15 Thread Richard Cooper
It was pretty serious at the time. Seemed to be a problem with the JVM garbage collection but is sorted now. It affected a handful of sites connecting to the SQL server. One of them was failing on the connection storage for the client session varaibles, so I was thinking if this ever happened

Re: onApplicationStart cftry

2007-01-14 Thread Raymond Camden
I think the idea is to cache the check and not rerun it on every request, which could be wasteful. It is a trade off. I'd probably use onRequestStart, and cache the last check time, and only check once an hour. Maybe. :) On 1/14/07, Richard Cooper [EMAIL PROTECTED] wrote: Hi, I've seen a few

Re: onApplicationStart cftry

2007-01-14 Thread Richard Cooper
Gotcha. Thanks Ray. Do you know about the clientStorage bit? I had a problem a while back when I had DB problems and the storage of client and session variables. I'm pretrty sure that this was happening straight away in the first line of application.cfm, within the cfapplication tag. Where by

Re: onApplicationStart cftry

2007-01-14 Thread Raymond Camden
Well, if your client storage fails, thats pretty bad. To me it's the kind of thing you wouldn't try catch as it means a serious problem. On 1/14/07, Richard Cooper [EMAIL PROTECTED] wrote: Gotcha. Thanks Ray. Do you know about the clientStorage bit? I had a problem a while back when I had DB