Jason T. Slack wrote:
> I am still getting Application.dsn not found.
It's important to note that the onApplicationStart function ONLY runs
when an application is initialized, which is generally a pretty rare
occurrence for a web site that gets accessed a lot.
One way to force the application to restart is to restart coldfusion.
Alternatively, you could use the onRequestStart() method of the
application.cfc in such a way that it forces reinitialization of the
application based on some url parameter
ie...
<cffunction name="onRequestStart" returnType="boolean">
<cfif isDefined("url.init")>
<!--- reinit application start --->
<cfreturn onApplicationStart()>
<cfelse>
<cfreturn true>
</cfif>
</cffunction>
I haven't ever used application.cfc yet, so I don't know if that really
would be valid or not.
Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260544
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4