Luis Majano Forums Notification: Post to Transfer and Coldspring?

Title: RE: Transfer and Coldspring?
Thread: Transfer and Coldspring?
Forum: Need Help?
Conference: ColdBox
User: lmajano

Hi Terry,

You are absolutely right. All the values in the config.xml get
translated into a single structure that gets passed to the coldspring factory.
So if you have for example:

[code]
Setting name=TransferSettings
value={datasourceFile:config/datasource.xml.cfm,
transferFile:config/transfer.xml.cfm, definitions:config/definitions}
[/code]
ColdBox will translate that to a structure called 'TransferSettings' with all
the keys. Then on your coldspring definition file you can use:

[code]
<constructor-arg name="datasourcePath">
<value>${TransferSettings.datasourceFile}</value>
</constructor-arg>
[/code]

Now, in order for coldspring to have access to
this file you must use the
"IOCFramework,IOCDefinitionFile,IOCObjectCaching" settings in your
config. This way, ColdBox loads the coldspring factory for you with the
definition file and passing in all the arguments.

Just make sure that your
paths for the files are correct. Transfer needs the full relative paths.

This
is how I am using it, and it works awesome.
Let me know if this helps or you
need more info.

Ohh, it did not post in the group, because, the first time you
post there, it gets moderated. The second time it just goes through.

Luis

http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=C918097B-123F-6116-42DACED2D00C5101