Link to home
Start Free TrialLog in
Avatar of Jay Roy
Jay RoyFlag for United States of America

asked on

cronExpression

hi guys

I am using spring with java
I have


<bean id="emailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="job" ref="emailJob" />
<property name="cronExpression" value="0 0/20 * * * ?"/>
</bean>

what does <property name="cronExpression" value="0 0/20 * * * ?"/>  mean ?

thanks
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

'Run every twenty hours starting at midnight on every day'
Avatar of Jay Roy

ASKER

can you point me to a link which talks more about this?
also what is '?' in the end


>>also what is '?' in the end

I interpret that to mean 'there is no command' since it's being done w

http://en.wikipedia.org/wiki/Cronith Quartz

Oops. That should have said 'done with Quartz'

http://en.wikipedia.org/wiki/Cron
Avatar of Jay Roy

ASKER

ok , thanks ,
if i want to send a email every 10 seconds wil that be
value="0/10 0 * * * ?"
No. Unfortunately you can't get seconds granularity with cron
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland 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
SOLUTION
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
No need for a nasty kludge like that. Needless to say, a fully-featured scheduling framework is quite able to cope with every n seconds - it's just that *cron* is not designed to support that
But you definetely don't need the whole scheduling framework to send emails after every certian interval
SOLUTION
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
:)