camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dragisa Krsmanovic <>
Subject Re: pollEnrich doesn't look for FILE_NAME
Date Wed, 16 Sep 2009 15:52:05 GMT
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 containing one of the files from the specified
> directory, /test/data. In other words, the current exchange is ignored when
> pollEnrich() polls the file system, and this is the expected behaviour.
> If you want to read a specific file, you could use the fileName option
> option in the URI. For example:
> .pollEnrich("file:/test/data?noop=true&readLock=none&fileName=foobar.xml",10000)
> For details of the fileName option, see

Is there a way to set file name in pollEnrich dynamically ?

I want something like:
.pollEnrich("file:/test/data?noop=true&readLock=none", 10000)

Dragisa Krsmanovic
Java Developer
Public Library of Science

View raw message