« Return to Thread: DSN is Saving CF Query Ops to Wrong Database?

Re: DSN is Saving CF Query Ops to Wrong Database?

by Matthew Reinbold :: Rate this Message:

Reply to Author | View in Thread


> Maybe. Make sure each of your applications has its own namespace by
> using this.name in Application.cfc, otherwise they'll share ( and
> overwrite eachother ) anything you put into the application scope

Interesting. Looking through the inherited code I'm seeing that in the application.cfc OnApplicationStart method the DSN is set like:

<cfset application.ds = "mydb" />

Would that be any different than using:

<cfset this.ds = "mydb" />

?

Also, to clarify, the "separate" Coldfusion servers for Dev and Test are separate instances upon the same JRun, so some kind of variable scope "leakage" might make sense.

-Matthew

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324270
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

 « Return to Thread: DSN is Saving CF Query Ops to Wrong Database?