camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: poll enrich and file endpoint
Date Thu, 18 Aug 2016 06:12:32 GMT
Its easier to do a message transformation and set the body as a

  <simple type="">{{env:HOME}}/my-dir/${body}</simple>

On Tue, Aug 16, 2016 at 8:39 PM, Alex Soto <> wrote:
> Hello,
> I am experiencing erratic results when using the Poll Enrich with a static file.
> The file is static in the sense that it never changes, so I am setting both the noop=true
and the idempotent=false.
> Basically I need to be able to serve this same files for ever, and not move it or deleted
> My route sets the body with the file name, then it continues with:
> <pollEnrich timeout="5000">
>    <simple>file:{{env:HOME}}/my-dir?noop=true&amp;fileName=${body}&amp;idempotent=false</simple>
> </pollEnrich>
> It works a few times, but after this is executed several times (from multiple clients
concurrently), the body becomes null, even though, the file is still present in the directory.
> Am I setting the options correctly?  How can this be accomplished?
> Best regards,
> Alex soto

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

View raw message