Link to home
Start Free TrialLog in
Avatar of mte01
mte01Flag for Lebanon

asked on

CronTrigger Expression

Hey experts,

 Using the org.quartz.CronTrigger class (whose doc. is found at: http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html). I have two questions:

1- If I want an event scheduled to occur every 15 minutes, would that be its expression??

"0 0/5 * * * ?"  

2- If I want an event scheduled to occur every 15 minutes, starting after 20 minutes from now, what would be its expression??
ASKER CERTIFIED SOLUTION
Avatar of sciuriware
sciuriware

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sciuriware
sciuriware

This happens to be a LINUX/UNIX question;
fine scheduling could be done from your own JAVA program,
which should run in the background.

;JOOP!
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mte01

ASKER

>>sciuriware

1) Isn't my expression also correct??
2) After thinking of it, it's not worth implementing

>>objects

2) I ned to conform to what has been used in the project before....(they have used the Cron Trigger), so it's not worth implementing...
> (they have used the Cron Trigger)

so how did they use it?
Avatar of mte01

ASKER

>>objects

They used CronTrigger, but they haven't used this "starting after 20 minutes from now" requirement, and now that I see that it can't be implemented using CronTrigger, I prefer that I don't provide this option at all (seeing that it's not that important) instead of doing a whole new implementation of SimpleTrigger (& thus changing the design of DB tables that already have fields for stored Cron Expressions).