Hi In the future we will add a scheduled DSL to Camel so you can schedule routes to be started using a nice DSL syntax which supports CRON and regular timer delays etc. If we had that in place your use case would be easy.
On Tue, Feb 16, 2010 at 9:58 AM, Kevin Jackson <[email protected]> wrote: > 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}&noop=false&idempotent=true&idempotentRepository=#fileStore&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 > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
