>From Camel 2.12 onwards you can provide a scheduler on the file/ftp consumers http://camel.apache.org/polling-consumer.html
On Mon, Feb 3, 2014 at 3:06 PM, Tom Fornoville <tom.fornovi...@roots.be> wrote: > Hi Claus, > > Thanks for your answer. > I read that topic earlier but it's not the configuration of Quartz I'm > having problems with. > > What I would like to know is how I can use a quartz endpoint to trigger > file pickup. > > Right now we have something like: > <route> > <from uri="sftp://{{user}}@ > {{server}}?password={{password}}&delay={{delay}}"/> > ... > </route> > > And we want to replace the delay with a Quartz scheduler so it should be > something like: > <route> > <from uri="quartz:..." /> > <from uri="sftp://{{user}}@{{server}}?password={{password}}"/> > ... > </route> > > The second <from> doesn't make sense but I don't know how to describe what > I want this route to do. > > Tom Fornoville > Senior Developer > m: +32 478 65 86 51 > www.roots.be > > > On Mon, Feb 3, 2014 at 2:52 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > >> Hi >> >> A similar topic was recently debated >> >> http://camel.465427.n5.nabble.com/Master-Slave-failover-using-database-lock-tp5746646.html >> >> On Mon, Feb 3, 2014 at 2:46 PM, Tom Fornoville <tom.fornovi...@roots.be> >> wrote: >> > Hello Camel users, >> > >> > In our project we have several routes that start from a file (local >> > filesystem or FTP) and when we're clustering this via Fuse Fabric we want >> > to ensure that only one instance of the route picks up files. >> > >> > Our first thought was to use the Quartz scheduler with a JDBC-JobStore as >> > described here: >> > >> http://quartz-scheduler.org/documentation/quartz-2.x/configuration/ConfigJDBCJobStoreClustering >> > >> > Is there an example of a working JDBC-JobStore from within Camel? >> > >> > Are there other (simpler) solutions to make sure that multiple routes >> don't >> > interfere? >> > >> > Best regards, >> > Tom >> >> >> >> -- >> Claus Ibsen >> ----------------- >> Red Hat, Inc. >> Email: cib...@redhat.com >> Twitter: davsclaus >> Blog: http://davsclaus.com >> Author of Camel in Action: http://www.manning.com/ibsen >> Make your Camel applications look hawt, try: http://hawt.io >> -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io