Hi

You can use a custom PollingConsumerPollStrategy where there commit
method will have the number of files processed.
So if this number is 0, then you know there was no files to poll.

See details at:
http://camel.apache.org/polling-consumer.html



On Mon, Apr 16, 2012 at 9:27 PM, brbornia <brbor...@gmail.com> wrote:
> Hello guys,
>
> I am working on a route like this to handle files that should arrive every
> day:
>
> <route>
>  <from uri="file:/my/incoming/directory?delay=86400000"/>
>  <... do_stuff_here/>
> </route>
>
> If the file does not arrive, the default is to do nothing, but need to
> handle it as an exception. Any ideas on how can I do that?
>
> The closest solution I found was setting sendEmptyMessageWhenIdle property
> to true, but it´s only available on camel 2.9 and I am deploying the routes
> on apache service mix 4.4.1, wich works with camel 2.8.
>
> Thanks in advance,
> Bruno.
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/File2-endpoint-issue-tp5644759p5644759.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to