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-tp26294386p26294386.html
Sent from the Camel - Users mailing list archive at Nabble.com.