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

Reply via email to