cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [Vote] Releasing 2.1.1
Date Thu, 04 Sep 2003 15:53:08 GMT
On Thu, 4 Sep 2003, Berin Loritsch wrote:

> 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?
>
> According to cron specs:
>
> "* * * * * */5" -> every five seconds
> "* * * * */80 *" -> every 80 minutes

No, Quartz dosn't accept a */80. It complains it must not be >60

Actually the cron spec it the other way around:

seconds minutes hours days months weekdays [years]

The seconds and years isn't in the cron spec IIRC. But Quartz has
introduced it.

--
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com


Mime
View raw message