If you always need to poll the same file, then you can also do

<transform>
  <simple resultType="java.io.File>{{working.folder}}/filename.time</simple>
</transform>

To set the body as a java.io.File of the file.




On Tue, Dec 3, 2013 at 11:46 AM, martin11 <mato.kraj...@gmail.com> wrote:
> Hello Claus,
>
> I set timeout on poolEnrich but the error occured again.
> <camel:pollEnrich ref="timeFile" strategyRef="enrichAggregation"
> timeout="10000"/>
>
> Should it be problem (or feature) when using sendEmptyMessageWhenIdle=true
> on file endpoint?
>
> The server is always in high load and when I try to read data from file it`s
> possible that file system is not responding immediately .  Do I also change
> configuration of file endpoint? e.g readLockTimeout?
> <camel:endpoint id="timeFile"
> uri="file://{{working.folder}}/?fileName=filename.time&amp;noop=true&amp;idempotent=false&amp;readLock=none&amp;sendEmptyMessageWhenIdle=true&amp;fileExist=Override"/>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Random-unsuccessful-read-from-file-tp5744181p5744230.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to