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

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

by David McGuigan-2 :: Rate this Message:

Reply to Author | View in Thread


So do your Application.cfc files have a <cfset this.name = "etc" /> in their
pseudo constructors?


On Mon, Jul 6, 2009 at 3:43 PM, Matthew Reinbold <
matthew.reinbold@...> wrote:

>
> > 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:324273
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?