Many thanks, the option /sendEmptyMessageWhenIdle/ helped for me. Inside the route I can check the empty message as you can see below:
.choice() .when(body().isNull()) .setHeader(CamelHeader.ANY_MESSAGE, simple("Directory is empty and transfer is going to finish!")) .to("seda:" + SedaDirectDestinations.SEDA_INFOS_WHILE_TRANSFER) .bean(stopRoute) .otherwise() ... // transfer as usual Have a nice weekend! Hilde -- View this message in context: http://camel.465427.n5.nabble.com/Polling-consumer-how-to-recognize-an-empty-directory-tp5716761p5716769.html Sent from the Camel - Users mailing list archive at Nabble.com.