camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvahdat <babak.vah...@swissonline.ch>
Subject Re: FT2: How do I know the list of file that a Consumer FTP2 is receiving?
Date Tue, 20 Dec 2011 13:04:28 GMT
Hi Raul,

instead of coding the polling-logic by yourself you could delegate that to
the ftp component [1] by defining a proper route for it, see the example in
[1] with the description:

"In the sample below we set up Camel to download all the reports from the
FTP server once every hour (60 min) as BINARY content and store it as files
on the local file system."

So that you don't have to code it by yourself if there's any newly available
file since the last poll. If you've got any exaggerated requirements you
could of course also make use of the Bean-Integration as well.

[1] http://camel.apache.org/ftp2.html

Babak


--
View this message in context: http://camel.465427.n5.nabble.com/FT2-How-do-I-know-the-list-of-file-that-a-Consumer-FTP2-is-receiving-tp5088669p5088807.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message