On Tue, 2009-09-15 at 22:53 -0700, Fintan Bolton wrote:
The first argument to pollEnrich() specifies a consumer endpoint, not a
producer endpoint. So, instead of sending the current exchange (the one
containing the header) to the endpoint, the pollEnrich() command creates a
new exchange object
On Wed, Sep 16, 2009 at 5:52 PM, Dragisa Krsmanovic
dkrsmano...@plos.org wrote:
On Tue, 2009-09-15 at 22:53 -0700, Fintan Bolton wrote:
The first argument to pollEnrich() specifies a consumer endpoint, not a
producer endpoint. So, instead of sending the current exchange (the one
containing the
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=truereadLock=none,1)
.to(file:/test/ftpdir);
The first argument to pollEnrich() specifies a consumer endpoint, not a
producer endpoint. So, instead of sending the current exchange (the one
containing the header) to the endpoint, the pollEnrich() command creates a
new exchange object containing one of the files from the specified
directory,