(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