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: Dynamic File Name
Date Mon, 22 Oct 2012 14:40:15 GMT
You can set a header with each of the details from the xml

<setHeader headerName="location"><xpath>message/location/text()</xpath></setHeader>
...

And then refer to these headers in the file uri
fileName=xxxx-${header.location}-${header.xxxx}


On Mon, Oct 22, 2012 at 4:26 PM, wcpolicarpio
<walter.policarpio@morgansolar.com> wrote:
> Hi Willem,
>
> I am pretty new to Camel, can you please give me an example based on my
> activemq message body?
>
> Thanks,
> Walter
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Dynamic-File-Name-tp5721316p5721394.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message