On Wed, Mar 24, 2010 at 3:10 PM, Dennis Clark wrote:
...
> framework's ColdSpring.xml and again in my Application.cfc. This is a bit of
> a "chicken and egg" problem so I doubt there is an elegant solution for it.

Someone mentioned using the built-in XML capabilities of, um, XML to
pull in stuff from other places on the ColdSpring list.

This was their example:

<!DOCTYPE beans SYSTEM "ColdSpring.dtd"
[
    <!ENTITY datasource "billingportal">
]>
<beans>
    <bean id="someDsn" class="some.cfc.configuration.Datasource">
        <property name="dsn"><value>&datasource;</value></property>
        <property name="databaseType"><value>oracle</value></property>
        <property name="userName"><value>charge</value></property>
    </bean>
</beans>

You'd probably want to use a fragment and pull it from another XML
file, vs. doing the entity deal above, but I just thought it was cool
because people often forget how powerful plain old XML can be.

:Den

-- 
A wise man should so write (though in words understood by all men)
that wise men only should be able to commend him.
Thomas Hobbes

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

To unsubscribe from this group, send email to 
model-glue+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to