About 99% of the code I've seen out there just set a bunch of
Application constansts and components, so this is fine. Don't forget
it, of course, but most folks won't be impacted by it. I typically add
this to onRequestStart:

<cfif structKeyExists(url, "reinit")>
<cfset onApplicationStart()>
</cfif>

On 5/23/06, Brian Kotek <[EMAIL PROTECTED]> wrote:
> Yep, exactly. However, note that CF only single-threads onApplicationStart()
> automatically when IT runs it. If YOU manually re-run onApplicationStart(),
> you must lock that method call if you want to prevent race conditions.
>
> On 5/23/06, Jochem van Dieten <[EMAIL PROTECTED]> wrote:
> >
> > Snake said:
> > > As  OnApplicationstart only executes once at the start of an
> > > application this does means you couldn't use it to reset your
> > > application variables, which is a pain IMHO.
> >
> > Just call OnApplicationstart from somewhere else in application.cfc.
> >
> > Jochem
> >
> >
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241222
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to