
Originally Posted by
Cleric
Hello
As I understand you say that your cron-trigger will stop scheduling once.
So, you can inherite from org.springframework.scheduling.support.CronTrigger and overwrite his method nextExecutionTime and inject this trigger bean into <poller>'s ref attribute.
Trigger stops scheduling when nextExecutionTime returns null
But what do you mean about validation ? What are you going to validate?
Artem
I will validate whether all the data that I need to process is available on the database. That's why I need to validate it on the last cron's execution. If the data is not available until the last execution, I need to send an email report.
So, basically I will replace
Code:
<poller cron="0 0/1 19-22 ? * MON-FRI" />
by
Code:
<poller ref="myCron" />
<bean id="myCron" class="..."><constructor-arg value="0 0/1 19-22 ? * MON-FRI" /></bean>
That's right ?
I will try it and then let you know the result, thanks in advance.