I used to have this issue as well, you obviously cannot read read app vars that do not exist yet and you cannot create them until the application scope is initialised. The way I got round this is to have 2 XML files. One that contains the init variables that need to exist before the application scope is initialised, and I load these into request scope onapplicationstart. Once this is done, I then load the global config into the application scope.
On Thu, Aug 11, 2011 at 11:06 PM, Brook Davies <[email protected]> wrote: > > I'm trying to set all my apps properties via a config file to make > deployment between dev, production servers easy. Problem is the application > vars that are read via onApplicationStart() are not available within the > opening part of the application.cfc and when I try to set these properties > inside onRequestStart() they do not work. Should I be able to set these in > onRequestsStart()? > > > > <cfcomponent output="false" extends="coldfireApplication"> > > > > <cfset this.clientManagement = true> > > <cfset this.setClientCookies = true> > > <cfset this.setDomainCookies = false> > > <cfset this.clientStorage = application.gs.clientVarDataSource> > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346712 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

