Hi All,
My job.xml contain a step with reader, processor and Writer. If any business exception occurs, then current chunk should rollback and pick the next chunk to process.
Can I use RepeatTemplate?
If the answer is yes, then how to configure the RepeatTemplate for my case?
<code>
<job id="Batch_ControllerJob" restartable="true"
xmlns="http://www.springframework.org/schema/batch">
<step id="pricesLoadStep">
<tasklet transaction-manager="transactionManager">
<chunk reader="pricesLoadItemReader" processor="pricesLoadItemProcessor"
writer="pricesLoadItemWriter" commit-interval="2">
</chunk>
<no-rollback-exception-classes>
<include class="batch.core.exception.PricesLoadNoRollbackEx ception" />
</no-rollback-exception-classes>
</tasklet>
</step>
</job>
</code>


Reply With Quote
