Jon Hirschi said the following on 11/17/2010 05:41 PM:
Is this possible to do?
Yes, by default the ColdSpringProperty passes Mach-II properties into
the CS bean factory. Property CFCs are loaded in the order they are
defined:
* Main .xml file
* Include .xml files in order they are defined
As long as the EnvironmentProperty is loaded before the
ColdSpringProperty, then passing values:
<bean id="EmailConnector"
class="com.industryintel.services.connectors.Email">
<constructor-arg name="fromEmail">
<value>${reportFromEmail}</value>
</constructor-arg>
<constructor-arg name="timeout">
<value>${emailTimeout}</value>
</constructor-arg>
<constructor-arg name="receiveServer">
<value>${receiveServer}</value>
</constructor-arg>
</bean>
Using the ${} syntax works. I don't think you need to change anything
for this to work.
Refs:
http://trac.mach-ii.com/machii/wiki/UsingColdSpringWithMach-II#UsingMach-IIPropertieswithinColdSpring
.pjf
--
You received this message because you are subscribed to Mach-II for CFML list.
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/mach-ii-for-coldfusion?hl=en
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/