Datasource problem

Hi Luis,

I have a strange (simple) problem.

Coldspring xml

Code below throws this error: Datasource ${datasources.oldtimecars.name} could not be found. ( So the value is not evaluated)

<value**>${ datasources.oldtimecars.name}**

This code works:

oldtimecars

ColdBox xml

I did a fwreinit to reload the coldbox xml file.

Do you have any ideas?

Ernst

Acutally I do.
Coldspring BER I believe does not support complex variables anymore on
the settings structure that gets sent in to coldspring. If you are
using coldbox 2.5.0 rc2, you will find that coldboxfactory object that
can produce datasource beans already for you. However, if you just
want the variable, well, I suggest, just creating a simple setting. I
dislike that complex variables where eliminated from coldpsring and I
have modified my coldspring to support them.

<YourSettings>
  <Setting name="mydsn" value="oldtimecars" />
</YourSettings>

If not, just use the coldboxFactory object to produce a datasource for
you.

Luis