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: File Consumer Endpoint - File Name Header
Date Fri, 15 Aug 2014 09:20:35 GMT
Hi

See this page
http://camel.apache.org/file2

On Fri, Aug 15, 2014 at 11:16 AM, contactreji <contactreji@gmail.com> wrote:
> Hi Folks
>
> Am reading a file using File Consumer Endpoint as follows. Can someone help
> me with the *name of the Header to which the name of the file picked in
> mapped*?
>
> I want the *consumed fileName* to be copied to a header called MessageID.
> Following doesn't work. It stores null
>
> <route>
>                 <from uri="file:{{recoveryFolder}}"/>
>
>                  <setHeader headerName="MessageID">
>                         <simple>${org.apache.camel.file.name}</simple>
>
>                 </setHeader>
>
>                 <to uri="{{inboudQueueName}}" />
> </route>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/File-Consumer-Endpoint-File-Name-Header-tp5755253.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message