Announcement Announcement Module
No announcement yet.
Strange spring batch job is deleting UNIX script files Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strange spring batch job is deleting UNIX script files


    I am getting one issue in my batch application written using spring batch 2.1 .To run batch application i am using UNIX script( that is invoking a main method of my runner class( configuration is done with quartz cron expression for firing job every midnight. My batch job is deleting script files(, 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:

        <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}" />
    my.job.cron.exp=0 0 0 ? * *
    Please help me to short out this issue.

    Thanks in advance