Hi there,
We need to run a job in certain time window only once a day and it also
depends on a trigger file. It needs to be also started if the application
started after the starting time point of the time window. Periodically
checking for the trigger file with a timeout as defined below fails us since
we don't know how to check the existence of the trigger after pollEnrich
times out. It always calls doSomething.
<route id="test">
<from uri="quartz://sodJob?stateful=true橪;cron=0+*/5+3-6+?+*+*"/-->
<pollEnrich uri="file:{{data_home}}/Bod?fileName=START"
timeout="60000"/>
<transacted/>
<to uri="bean:utilBean?method=doSomething"/>
</route>
Any ideas how to check if the pollEnrich timed out or the trigger file
arrived?
Thanks in advance.
We need to run a job in certain time window only once a day and it also
depends on a trigger file. It needs to be also started if the application
started after the starting time point of the time window. Periodically
checking for the trigger file with a timeout as defined below fails us since
we don't know how to check the existence of the trigger after pollEnrich
times out. It always calls doSomething.
<route id="test">
<from uri="quartz://sodJob?stateful=true橪;cron=0+*/5+3-6+?+*+*"/-->
<pollEnrich uri="file:{{data_home}}/Bod?fileName=START"
timeout="60000"/>
<transacted/>
<to uri="bean:utilBean?method=doSomething"/>
</route>
Any ideas how to check if the pollEnrich timed out or the trigger file
arrived?
Thanks in advance.