Hi. I've been at this for a few hours and I'm running on little sleep. I've setup my job with what I thought was the correct XML, but nothing runs. Stepping through the code, I see that nothing is really called.
Here's my XML:
mySimpleJob just uses a SimpleJob, restartable = false.Code:<bean id="campusDataJob" parent="mySimpleJob"> <property name="steps"> <bean id="step1" parent="mySimpleStep"> <property name="tasklet"> <bean class="org.springframework.batch.execution.tasklet.ItemOrientedTasklet"> <property name="itemReader"> <bean class="com.howie.batch.spring.DataServiceReader"/> </property> <property name="itemWriter"> <bean class="com.howie.batch.spring.LoggerItemWriter"/> </property> </bean> </property> </bean> </property> </bean>
mySimpleStep injects the jobRepository, sets an exception handler, uses a commitInterval of 1, and does not save execution attributes, and allows starting if completed.
What am I missing that's probably obvious to everyone else? I know my ItemReader has items in it and my ItemWriter simply logs the item to stdout... not that the read() or write() methods are being called. In fact, SimpleJob's execute() isn't being called, so I know I messed something up bigtime.


Reply With Quote