On Sat, Nov 22, 2008 at 8:38 AM, Dave Phillips wrote:
> I have the following code.  When I try to execute my URL with the 
> reloadConfig=yes parameter, The app fails on the first line of the 
> onSessionStart() function with 'application.datasource does not exist.'  
> Since onSessionStart is called AFTER onApplicationStart(), clearly, the 
> <cfsets that set application.datasource occur before that line of code.  Any 
> ideas?
>
> <cfcomponent output="false">
>        <cfset this.name = "zarts_tag_prod">
>        <cfset this.SessionManagement = true>
>        <cfset this.sessionTimeout = createTimeSpan(7,0,0,0)>
>        <cfset this.ApplicationTimeout = createTimeSpan(30,0,0,0)>
>        <cfif isDefined("url.reloadConfig") AND (isBoolean(url.reloadConfig) 
> AND url.reloadConfig)>
>                <cfset onApplicationStart() >
>        </cfif>
>        <cfif isDefined("url.reloadSession") AND (isBoolean(url.reloadSession) 
> AND url.reloadSession)>
>                <cfset onSessionStart() >
>        </cfif>

Move both cfif blocks to the onRequestStart() method so they run a
little bit later.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315802
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to