Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Step Re-execution even when marked "isAllowStartIfComplete" as false

  1. #11
    Join Date
    Dec 2006
    Posts
    108

    Default

    Its solved.....It was a pretty dumb mistake by me...I had commented out the job identifier factory identifier....thanks Lucas for pointing out the JobDao

    <property name="jobIdentifierFactory" ref="jobRuntimeInformationFactory" />

    This used the scheduled date that I completely ignored in setting while creating this instance

    <bean id="jobRuntimeInformationFactory" class="org.springframework.batch.execution.runtime .ScheduledJobIdentifierFactory">
    <property name="jobKey" value="TestStream" />
    <property name="scheduleDate" value="20070505" />
    </bean>


    So the query FIND_JOBS in the Dao would never find the job and would always execute from the beginning....sorry for the bother it was a rather stupid mistake

    Also, is it possible for me to create my own scheduled job identifier factory as I would like to have the scheduled date to be picked up from a table every time and not be statically injected at once ? Any ideas ?

    Thanks..VJ

  2. #12
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    Yes, you can definitely create your own implementation of the JobIdentiifierFactory interface. Also, I'm working on making this even easier for milestone 4 right now (see BATCH-84)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •