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 <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
