You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by fliot33 <fr...@poplidays.com> on 2014/10/31 16:15:19 UTC
Dynamic URI too short documentation
Hi,
I spent hours to build dynamic URI with multiple parameters, header
variables, and properties, both mixed.
I believe it worth to extend little bit this document:
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
typically using "{{myProperty}}" would not work, mixed with
"${header.myVar}" values !!!!
I propose you put a complete example,
--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-URI-too-short-documentation-tp5758377.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Dynamic URI too short documentation
Posted by fliot33 <fr...@poplidays.com>.
I propose you put a complete example,
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:camel.properties</value>
</list>
</property>
</bean>
<spring:camelContext>
<routeContext>
<route>
<from uri="activemq:myQueue"/>
<setHeader headerName="myVar"><xpath
resultType="java.lang.String">/root/myVar</xpath></setHeader>
<recipientList><simple>file:/somePath/${properties:myProperty}/${header.myVar}/someSubDir</simple></recipientList>
</route>
--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-URI-too-short-documentation-tp5758377p5758378.html
Sent from the Camel - Users mailing list archive at Nabble.com.