Hello,
I'm trying to implement a step which reads data from a table using the ibatis itemReader provided by the framework.
This almost works by I've the problem that the reader seems to loop, infinitly, doing request again and again.
I'm a beginner in String Batch so, a little help would be welcome
Here is the code of my step
The itemWriter is just a basic Writer which log the data on the console, indicating the data are well send by the reader. And the pojoToPojoProcessor is just making a mapping from an object to anotherCode:<step id="stepTwo"> <tasklet reader="dbDataFromFlatFileReader" writer="itemWriter" processor="pojoToPojoProcessor" commit-interval="1" /> </step>
Here is the code of my Reader
and finally, here is the code of my requestCode:<beans:bean id="dbDataReader" class="org.springframework.batch.item.database.IbatisPagingItemReader"> <beans:property name="sqlMapClient" ref="sqlMapClient"/> <beans:property name="queryId" value="dffSelect"/> </beans:bean>
Any idea why it is looping ? I guess it is because the read() method of the itemReader never sends back "null". But why ? Did I forget to do something ?Code:<select id="dffSelect" resultMap="abatorgenerated_DataFromFlatFileResult"> select DFF_COL_1, DFF_COL_2, DFF_COL_3 from DATA_FROM_FLATFILE </select>



Reply With Quote