You can you
 interceptFrom().when(simple("${file:length} == 0"))

--filippo

Il 16 aprile 2012 21:27, brbornia <brbor...@gmail.com> ha scritto:
> 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.

Reply via email to