Try sending back one of the subclasses of AbstractItemCountingItemStreamItemReader from ReaderFactory.getObject().
You can send back either a AbstractCursorItemReader, AbstractPagingItemReader,...
Type: Posts; User: joseps; Keyword(s):
Try sending back one of the subclasses of AbstractItemCountingItemStreamItemReader from ReaderFactory.getObject().
You can send back either a AbstractCursorItemReader, AbstractPagingItemReader,...
scope="step" must be set for receiving jobParameters, like below:
<bean id="reader" class="com.abcbs.EDI837.common.ReaderFactory" scope="step>
.
.
.
</bean>
Below is how you can use the ApplicationContext:
public class ReaderFactory implements ApplicationContextAware, FactoryBean {
protected ApplicationContext applicationContext;
protected...
In our implementation, Job is described as:
<job id="myJob" restartable="true">
<step id="step1">
<tasklet task-executor="taskExecutor">
<chunk reader="readerFactory" ...
Never mind, I figured out a way to resolve this via spring factory-bean/factory-method. Thanks.
Is it possible to set itemReaders dynamically? Something like below is what I am looking to do.
<job id="myJob" restartable="true">
<step id="step1" >
<tasklet task-executor="taskExecutor">...