Hi,

> http://camel.apache.org/content-enricher.html
>
> There is a pollEnrich you can use in the DSL

I have tried this but the ftp connection is downloading the files
independently of the event fired from quartz.

<camel:route id="download" startupOrder="3">
  <camel:from ref="schedule"/>
  <camel:setBody><camel:constant></camel:constant></camel:setBody>
  <camel:pollEnrich ref="ftp" timeout="-1"/>
  <camel:to ref="file"/>
</camel:route>

My understanding of this is that quartz creates an event (or message
in Java parlance) which triggers the pollEnrich to consume the data
from the ftp endpoint and write this out to the file

My ftp endpoint is configured as:

<endpoint id="ftp"

uri="ftp://@{ftp.user}@@{ftp.server}/avail13?passwo...@{ftp.password}&amp;noop=false&amp;idempotent=true&amp;idempotentRepository=#fileStore&amp;localWorkDirectory=/tmp"/>

Interestingly with pollEnrich, the #fileStore isn't being updated
whereas with a simple <camel:from ref="ftp"/> it is

I'm not sure that Content Enrich is the EIP I'm after, I just want to
trigger the download/consumption of a file from ftp on a cron schedule

Kev

Reply via email to