I am using Spring to load properties:
<util:properties id="service-properties">
...
<prop key="postScript"></prop>
...
</util:properties>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" id="propertyConfigurer"><property name="properties" ref="service-properties" />
</bean>
However, one of the properties can have a value like the following (this is a camel xml simple language snippet):
postScript=<setBody><simple>${in.header.type}</simple></setBody>
The problem, is when I get the value of this property, it is:
postScript=<setBody><simple></simple></setBody>
I think it seems to be trying to resolve the ${in.header.type} variable, thinking it is a system variable maybe?
I'd like to know how to stop this variable being resolved? I've tried escaping it with quotes but no good.