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>
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>