Another approach - I use a centralized "serverConfigurationService" that is supplied to CFCs that need it... they can then ask the config service for configuration data - like dsn, etc. This allows for runtime changing of configuration, if you need that kind of functionality (some apps do!), and you only have to worry about race conditions in the service itself.
-Dave Ross >>> [EMAIL PROTECTED] 03/22/06 5:25 PM >>> Mark Ireland said the following on 3/22/2006 3:54 PM: > > OK Nando. So what do you do instead? I'm not Nando, but best practice to pass in your DSN/Timeout/usr/pwd etc into the CFC during init() and store them in the CFC's variable scope. You can do this as individual arguments or you can create a Datasource like CFC to hold stuff and pass that instead as Gerry has suggested. .Peter -- Peter J. Farrell :: Maestro Publishing Member Team Mach-II :: Member Team Fusion http://blog.maestropublishing.com Create boilerplate beans and transfer objects for ColdFusion! Fire up a cup of Rooibos! http://rooibos.maestropublishing.com/ ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ----------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
