From dev-return-47385-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Thu Sep 04 13:24:40 2003 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 18301 invoked from network); 4 Sep 2003 13:24:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Sep 2003 13:24:40 -0000 Received: (qmail 18692 invoked by uid 500); 4 Sep 2003 13:24:11 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 18636 invoked by uid 500); 4 Sep 2003 13:24:11 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 18571 invoked from network); 4 Sep 2003 13:24:10 -0000 Received: from unknown (HELO lapgp.otego.com) (195.216.81.146) by daedalus.apache.org with SMTP; 4 Sep 2003 13:24:10 -0000 Received: (qmail 30906 invoked from network); 4 Sep 2003 13:23:46 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 4 Sep 2003 13:23:46 -0000 Date: Thu, 4 Sep 2003 15:23:41 +0200 (CEST) From: Giacomo Pati Sender: giacomo@lapgp.otego.com To: dev@cocoon.apache.org Subject: RE: [Vote] Releasing 2.1.1 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thu, 4 Sep 2003, Carsten Ziegeler wrote: > Giacomo Pati wrote: > > > > please look at the other thread (Cron Block). I added > > > an addPeriodicJob() method to your scheduler to allow > > > periodic invocation (in seconds). > > > > > > With that change I'm able to convert to your scheduler > > > and we can forget the cornerstone one (and 5 jar files...) > > > > Why didnd you use a addJob(...., "* * * * * *", ...) which will be > > triggered each second? > > > Yes, this is easy for each second, but what when I want to schedule the > job, let's say every 5 seconds or every 80 minutes? You don't know cron, don't you? every 5 second: */5 * * * * every 80 minutes: hmm... how's going to schedule a periodic job every 80 minutes (dumb example :-)? Have a look at http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html for more details. -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com