I am trying to use pollEnrich to add file to message body as described
in http://camel.apache.org/content-enricher.html

Here is full example:

from("direct:start")
.setHeader(Exchange.FILE_NAME, constant("some.file"))
.pollEnrich("file:/test/data?noop=true&readLock=none",10000)
.to("file:/test/ftpdir");

For some reason, pollEnrich doesn't seem to take Exchange.FILE_NAME
header into account and fetches the first available file, not the one
specified in setHeader(...)

Is this a bug ?
-- 
Dragisa Krsmanovic
Java Developer
Public Library of Science 
http://www.plos.org

Reply via email to