Hi Hilde,

there is this flag "sendEmptyMessageWhenIdle"
to set on the file endpoint. This way you can tell wether the route is
idling and therefore are able to stop.

regards, Achim

2012/8/3 Hilde <hilde.sch...@yahoo.de>:
> Hello folks!
>
> We create a polling consumer route via a dynamic router. When the transfer
> is finished we recognize the end
> by the header /CamelBatchComplete/ and we are able to stop the route. But
> imagine the case when the directory of polling is empty. How can I find out
> that to stop the route rapidly?
>
> Cheers
> Hilde
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Polling-consumer-how-to-recognize-an-empty-directory-tp5716761.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
OPS4J Pax for Vaadin
<http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project
Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to