To be informed that you have polled all the files in a specific directory
(your hdfs dir), you can ask the pollingConsumer of the file
component/endpoint to send an empty message using this property
("sendEmptyMessageWhenIdle")
and using a ContentBaseRouter with a predicate (check that you get an empty
message, check that you get this property -->) to trigger your second camel
route.


On Tue, Sep 2, 2014 at 8:35 AM, Charles Moulliard <ch0...@gmail.com> wrote:

> Hi Monish,
>
> What is your use case ? If you use Apache Camel to transfert the files
> from a directory to a FTP Server, what would you like to do next ("I want
> the route to execute only till all the files in the directory are 
> transferred")
> ? If I follow you correctly, you are interested to setup 2 camel routes;
> one transferring the files from a dir to a ftp server and the second which
> is triggered if all the files have been transferred ?
>
> Regards,
>
>
> On Mon, Sep 1, 2014 at 6:38 PM, samnik60 . <monishs...@gmail.com> wrote:
>
>> Hi guys,
>> I am trying to use camel for the following use case,
>>
>> Take all files in a hdfs directory -> transfer the files to a ftp server
>>
>> I want the route to execute only till all the files in the directory are
>> transfered. I have looked at camel-hdfs2 and camel-ftp component , but it
>> seems to give me a
>> polling logic.
>>
>> Is camel a good fit for this use case or  should i use hdfs api and java
>> ftp api for this.
>>
>> Any example or suggestions on which way to proceed will be great.
>>
>> Regards,
>> R.Monish
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Reply via email to