Mach-II loads properties in the order they are defined.  Base config
first and the include config files.  More than likely you're CSProperty
is defined before the Environment property.

.Peter

> Hello,
>
> I'm having an issue loading properties from
> MachII.properties.EnvironmentProperty into
> MachII.properties.ColdspringProperty. When I place my environment
> specific properties into the corresponding server group, the
> properties are not loading and ColdSpring does not see the values.
> When debugged, ColdSpring sees "${primaryLDAP}" and not the resolved
> value. However if I place the same properties in the top level
> properties (<mach-ii> <properties> <property>) ColdSpring load the
> values correctly.
>
> Given the following sample code, am I loading or configuring something
> incorrectly?
>
>
> Code from MachII.properties.EnvironmentProperty:
> <parameter name="local-main">
> <struct>
> <key name="environmentGroup" value="local" />
> <key name="servers">
> <array>
> <element value="local.example.com" />
> </array>
> </key>
> <key name="properties">
> <struct>
> <key name="primaryLDAP" value="ldap01.example.com" />
> <key name="secondaryLDAP" value="ldap02.example.com" />
> </struct>
> </key>
> </struct>
> </parameter>
>
>
> Code from ColdSpring Config file:
> <bean id="ldapManager" class="com.example.global.ldapManager"
> singleton="true" lazy-init="false" autowire="no">
> <constructor-arg
> name="primaryLDAP"><value>${primaryLDAP}</value></constructor-arg>
> <constructor-arg
> name="secondaryLDAP"><value>${secondaryLDAP}</value></constructor-arg>
> </bean>
>
>
> Any help is greatly appreciated.
>
> Matt
>
> -- 
> To post to this group, send email to
> [email protected]
> For more options and to unsubscribe, 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/

-- 
To post to this group, send email to [email protected]
For more options and to unsubscribe, 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/

Reply via email to