-
Jan 10th, 2008, 05:12 AM
#11
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules