Jay Roy
asked on
cronExpression
hi guys
I am using spring with java
I have
<bean id="emailTrigger" class="org.springframework .schedulin g.quartz.C ronTrigger Bean">
<property name="job" ref="emailJob" />
<property name="cronExpression" value="0 0/20 * * * ?"/>
</bean>
what does <property name="cronExpression" value="0 0/20 * * * ?"/> mean ?
thanks
I am using spring with java
I have
<bean id="emailTrigger" class="org.springframework
<property name="job" ref="emailJob" />
<property name="cronExpression" value="0 0/20 * * * ?"/>
</bean>
what does <property name="cronExpression" value="0 0/20 * * * ?"/> mean ?
thanks
'Run every twenty hours starting at midnight on every day'
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
>>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
I interpret that to mean 'there is no command' since it's being done w
http://en.wikipedia.org/wiki/Cronith Quartz
ASKER
ok , thanks ,
if i want to send a email every 10 seconds wil that be
value="0/10 0 * * * ?"
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)