Yeah we use this all the time
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html

Do you have your PropertyPlaceholderConfigurer properly defined?

Hadrian

On Jul 20, 2009, at 3:31 PM, fjaouen wrote:


Hi,

I want to set a constant which is a Spring context property- placeholder. But
it seems Camel is not able to deal with ?

For instance I would like to say:

<camel:setProperty propertyName="MYUSERNAME">
        <camel:constant>${myusername}</camel:constant>
</camel:setProperty>

Instead of hardcoding it into my Camel configuration like this which is less
dynamic:

<camel:setProperty propertyName="USERNAME">
        <camel:constant>john</camel:constant>
</camel:setProperty>

Is there a way to do it ?

Thanks !
--
View this message in context: 
http://www.nabble.com/constant-in-setProperty-is-not-compatible-with-property-placeholder-Spring-context-tp24576074p24576074.html
Sent from the Camel Development mailing list archive at Nabble.com.


Reply via email to