If you set "this.datasource" in your Application.cfc, then any call to
cfquery/storedproc in the app will use that named datasource (unless
you override it when invoking the query/proc).
You could take this one step further and pull in the name of the
datasource from a .xml file (e.g.) that you read in at application
start time, allowing the code to be the same, and then changing only
the config file.
Does this help?
> --
> FW/1 on RIAForge: http://fw1.riaforge.org/
>
> FW/1 on github: http://github.com/seancorfield/fw1
>
> FW/1 on Google Groups: http://groups.google.com/group/framework-one
--
Will "Coke" Coleda