View History | PDF | SWF | HTML

How do I get Transfer working with ColdSpring?

There are several ways to get Transfer working with ColdSpring, the simplest ColdSpring configuration is the following:

<bean id="transferFactory" class="transfer.TransferFactory" singleton="true" >
   <constructor-arg name="datasourcePath"><value>/myapp/configs/datasource.xml</value></constructor-arg>
   <constructor-arg name="configPath"><value>/myapp/configs/transfer.xml</value></constructor-arg>
   <constructor-arg name="definitionPath"><value>/myapp/definitions</value></constructor-arg>
</bean>

<bean id="transfer" factory-bean="transferFactory" factory-method="getTransfer" singleton="true" />
<bean id="datasource" factory-bean="transferFactory" factory-method="getDatasource" singleton="true" />

This enables the Datasource CFC, and the Transfer CFC to be available for injection by ColdSpring.

It is also possible to integrate Transfer with ColdSpring using the Configuration CFC, if a more dynamic approach is required, more details of which can be found in the Installation and Updating documentation.