Hey Joe, I heard it was bad security to put UN/PW info in the coldspring XML...
Cheers, Baz -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Rinehart Sent: December 20, 2005 1:52 PM To: [email protected] Subject: [coldspring-dev] Dynamic Datasource (stops lurking) Hey Phillip, I'd define a bean to hold datasource information, and wire it to the CFC that needs it. That way, if datasource information need to expand, you've got room to grow. The XML would probably go a lot like this: <bean id="SomeBeanNeedingDatasource" class="tld.domain.SomeBeanNeedingDatasource"> <constuctor-arg name="Datasource"> <ref bean="Datasource" /> </constructor> </bean> <bean id="Datasource" class="ModelGlue.Bean.CommonBeans.Datasource"> <property name="DSN"> <value>SomeDSN</value> </property> <property name="Username"> <value>SomeUsername</value> </property> <property name="Password"> <value>SomePassword</value> </property> </bean> Cheers, Joe -- Get Glued! The Model-Glue ColdFusion Framework http://www.model-glue.com
