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
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
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
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
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
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
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
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
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
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
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.
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.
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
30 matches
Mail list logo