Re: poll enrich and file endpoint

2016-08-18 Thread Alex Soto
Dennis, In your case, I think you are missing the idempotent option in the File URI. Best regards, Alex soto > On Aug 18, 2016, at 10:59 AM, Dennis Bohnstedt Hansen wrote: > > Hi > > I’m seeing the same problem with pollEnrich, using a dynamic endpoint. I > send a my route a filename in

Re: poll enrich and file endpoint

2016-08-18 Thread Alex Soto
Wow, I didn’t know this was possible. Nice trick. Still the poll consumer seems to be the most intuitive choice if you come from EIP mindset. I never thought of my route as doing a data transformation, but rather a content enrichment. Anyway, I wonder if others will be hit by the same pr

Re: poll enrich and file endpoint

2016-08-18 Thread Dennis Bohnstedt Hansen
Hi I’m seeing the same problem with pollEnrich, using a dynamic endpoint. I send a my route a filename in the message-body, and expect the file content as a reply: from("direct:getFileContent") .log("Filename : ${body}") .pollEnrich().simple("file:/temp?readLock=none&noop=true&fi

Re: poll enrich and file endpoint

2016-08-17 Thread Claus Ibsen
Its easier to do a message transformation and set the body as a java.io.File {{env:HOME}}/my-dir/${body} 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

poll enrich and file endpoint

2016-08-16 Thread Alex Soto
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 it