> Hi All, I've tried initialization of applications with multiple methods, > and still am not convinced on what I like better. > > What initialization routine do you use? Do you use a properties file? Do > you use getters/setters on the request scope, etc. Do you read a > properties file within the CFC? Do you pass or store a location to a > properties file? > I use an XML file. By default the CFC initialize loading a predefined file, but I can also pass the path to a different XML file to the init() method in order to load different settings.
This way different applications can easily share the same CFC and I can even load a different kind of settings after the CFC is already in memory. It's very handy for multilanguage applications too (I live in Switzerland, most of the times we handle multiple languages) On the long term I would like to write a DTD or Schema for the XML and build an extension for DW in order to edit it from a visual environment ---------------------------- Massimo Foti http://www.massimocorner.com Co-Author of Dreamweaver MX 2004 Magic: http://www.dwmagic.com/ ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
