camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to set parameter dynamically in uri
Date Mon, 13 Aug 2012 08:05:59 GMT
Hi

See the FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

On Wed, Aug 8, 2012 at 5:15 AM, Deepthi <deepthi.t6@gmail.com> wrote:
> Hi,
>
> I am trying to set parameter dynamically in uri in the following manner:
>               <camel:route>
>                         <camel:from
>                                 uri="file://[folder path]" />
>                         <camel:setHeader headerName="id">
>
> <camel:xpath>/order/item/id</camel:xpath>
>                         </camel:setHeader>
>                         <camel:to
>
> uri="http://localhost:9002/rest/{id}/RestService" />
>                 </camel:route>
>
> Is this the right way to set the parameter? If not, how can I achieve this?
> I am using camel 2.8.0.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-set-parameter-dynamically-in-uri-tp5716959.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message