Does this solve your needs: http://camel.apache.org/constant.html
<from uri="seda:a"/> <setHeader headerName="theKey"> <constant>theValue</constant> </setHeader> Best, Christian On Wed, Jan 18, 2012 at 10:34 AM, Christoph Burmeister < chburmeis...@googlemail.com> wrote: > hi, > > how can I set a header with a value from a properties-file using > spring-xml? > Doing this with the const-tag is no problem, but then the value has to be > directly written in the camel.xml: > > <setHeader> > <const>foobar</const> > </setHeader> > > I like to use something like this: > > environment.properties: > ----------------------------- > header.value=foobar > > camel.xml > --------------- > <beans> > <bean id="placeholderConfig" > > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> > <property name="locations"> > <list> > <value>environment.properties</value> > <value>another-file.properties</value> > </list> > </property> > </bean> > > > <route> > ... > <setHeader> > ${header.value} > </setHeader> > ... > </route> > </beans> > > Is there a solution for camel 2.7 ? > > best, > christoph >