Announcement Announcement Module
Collapse
No announcement yet.
Problem in job schedular Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem in job schedular

    Hi,
    I have a file in a dir, while processing it is continously taking the same file into consideration as i have set the timer to 5 secs, but it shudnt consider the file as it has been started for processing, can someone help me out ?
    My config :
    <beans:bean class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
    <property name="triggers">
    <beans:bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronT riggerBean">
    <property name="jobDetail" ref="jobDetail" />
    <property name="cronExpression" value="0/5 * * * * ?" />
    </beans:bean>
    </property>
    </beans:bean>

    <beans:bean id="jobDetail" class="org.springframework.scheduling.quartz.JobDe tailBean">
    <property name="jobClass" value="com.systrends.gas.batch.QuartzJobLauncherDe tails" />
    <property name="group" value="quartz-batch" />
    <property name="jobDataAsMap">
    <beans:map>
    <beans:entry key="jobName" value="flatFileUSEReaderJob"/>
    <beans:entry key="jobLocator" value-ref="jobRegistry"/>
    <beans:entry key="jobLauncher" value-ref="jobLauncher"/>
    </beans:map>
    </property>
    </beans:bean>

    <job id="flatFileUSEReaderJob">
    .... job config.....
Working...
X