Re: pollEnrich doesn't look for FILE_NAME

2009-09-16 Thread Dragisa Krsmanovic
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

Re: pollEnrich doesn't look for FILE_NAME

2009-09-16 Thread Claus Ibsen
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

pollEnrich doesn't look for FILE_NAME

2009-09-15 Thread Dragisa Krsmanovic
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);

Re: pollEnrich doesn't look for FILE_NAME

2009-09-15 Thread Fintan Bolton
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,