-
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
-
Jan 10th, 2008, 09:32 AM
#12
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
-
Forum Rules