It is known issue, you cannot use properties in camelContext tag but there are ways to achieve this. See below thread for more details -
http://old.nabble.com/reading-endpoints-from-a-properties-file-td25894947.html#a25895352 Thanks! terminator_008 wrote: > > Hi, I am reading some values from a property file in the camel -config. > I want to be able to use ${dev2hub1odepatientservice.uri} in the Pipeline > set header element. But it does not work. > Here is my camel-config file. Would appreciate any pointers. > <bean id="test" > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> > <property name="location" value="classpath:camel-dev.properties" /> > > </bean> > <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> > <endpoint id="devOdePatientService" > uri="${dev2hub1odepatientservice.uri}"></endpoint> > <route errorHandlerRef="myDeadLetterErrorHandler"> > <from > uri="activemq:topic:topic.PATIENT?clientId=camelClientPatient&durableSubscriptionName=patientTopicSubscriber"/> > <to uri="bean:soapMessageCreator"/> > <multicast > > <pipeline> > <setHeader headerName="endpointURL"> > > <constant>${dev2hub1odepatientservice.uri}</constant> > </setHeader> > <to ref="devOdePatientService"/> > </pipeline> > </multicast> > </route> > <route> > <from uri="activemq:topic:topic.TEST1"/> > <to uri="activemq:topic:topic.TEST"/> > </route> > > </camelContext> > -- View this message in context: http://old.nabble.com/using-properties-file-tp26294386p26294431.html Sent from the Camel - Users mailing list archive at Nabble.com.