Why would you make your life difficult and write a pojo to get files via
ftp?

I would suggest that you use a camel-ftp consumer and specigy the poll delay
to be one minute:

 <route>
     <from 
uri="ftp://scott@localhost/public/reports?password=tiger&amp;binary=true&amp;consumer.delay=60000"/>
     <to uri="the endpoint of your choice"/>

</route>

I wouldn't use camel-quartz for that, since ftp provides a polling consumer.

A use case for camel-quartz is that if you want to retrieve data via a
producer (e.g. hit via http a url and process the results every minute).
If you still want to do it with camel-quartz here is an example:

 <route>
     <from uri="quartz://timerName?trigger.repeatInterval=60000"/>
     <to uri="the endpoint of your choice"/>

</route>


<route>
<from uri="quartz://myTimerName?trigger.repeatInterval=60000"/>
<!-- The rest of the route -->
</route>

But I wouldn't recommend that.

I would also suggest that you take a look at the full source examples of
camel in action, which can be found here:
http://code.google.com/p/camelinaction/source/browse/trunk/?r=310
Chapter 2: Contains FTP examples.

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
*

Reply via email to