Hello,
I am getting one issue in my batch application written using spring batch 2.1 .To run batch application i am using UNIX script(start.sh) that is invoking a main method of my runner class(MyJobRunner.java).Job configuration is done with quartz cron expression for firing job every midnight. My batch job is deleting script files(start.sh,stop.sh) from the directory that is starting job as well as its stopping script but job is firing usual every night and with no error.
Please let me know is this happening with my code or due to some relation with UNIX cron tab to spring cron expression calling. I have not edited system cron entry.On the other side if using Simple trigger working fine.
My spring configuration for cron is:
Please help me to short out this issue.Code:<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="myJobDetail" /> <property name="cronExpression" value="${my.job.cron.exp}" /> </bean> </property> </bean> my.job.cron.exp=0 0 0 ? * *
Thanks in advance
Akhtar



Reply With Quote