Hi!
I want to start a route using a quartz component with a cron statement. Then
use pollEnrich to obtain messages from an FTP server and forward them via a
route. Something along these lines (Java DSL):
from("quartz://scheduledpoll?cron=0/20+*+*+*+*+?")
.pollEnrich("ftp://" + props.getProperty("ftp.server") +
props.getProperty("ftp.inbox")
+ "?username=" + props.getProperty("ftp.user")
+ "&password=" +
props.getProperty("ftp.password")
+ "&move=done")
.to("direct:someChannel");
The problem is then, that as the quartz endpoint issues its one message per
firing, the pollEnrich component only retrieves one (that is 1) file from
the FTP server, as opposed to the intended batch of all available files!
The above is only an attempt to check a FTP server once in a while and then
retrieve all available files. I'm open to other solutions - also using
Spring XML DSL.
Reg. leNerd
--
View this message in context:
http://old.nabble.com/Scheduled-Polling-Consumer-on-FTP-endpoint-tp28678774p28678774.html
Sent from the Camel - Users mailing list archive at Nabble.com.