I have following code:
how many instances of item reader, writer, processor are created? 8 or just one reused by multiple threads because "hadoopreader" bean is scope="step"? If i want multiple instances, will scope="prototype" on itemprocessor help?Code:<batch:step id="bench"> <batch:tasklet task-executor="asyncExecutor" throttle-limit="8"> <batch:chunk reader="hadoopreader" commit-interval="100" writer="hadoopwriter" cache-capacity="100" processor-transactional="false" processor="solrbench"> </batch:chunk> </batch:tasklet> </batch:step>


Reply With Quote