Hi
The File consumer will poll at regular intervals, default half a second.
If you use routes like Claus mentioned then you may have these 2 routes for
what you described.
from("file:someDir").to("seda:foo");
from("seda:foo").multicast().to("seda:bar", "file:someOtherDir");
I've left out the route for "seda:bar", and you could multicast from the first
endpoint for the same effect but I stuck to the scenario you described.
Taariq
On 10 Oct 2011, at 8:30 PM, ebinsingh <[email protected]>
wrote:
> Thanks a lot. My main concern is how to implement endless polling on a
> directory for files.
> Not quite understanding the behind work of Camel PlooingConsumer.
> I tried various ways but, the process terminates as soon as the current set
> of files have been read and processed.
>
> Appreciate your help.
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Move-does-not-work-with-file-polling-tp4876472p4889193.html
> Sent from the Camel - Users mailing list archive at Nabble.com.