remote chunking with the control on reader in spring batch

若如初见. 提交于 2020-03-04 05:00:26

问题


I have to use spring batch to read the file and process the contents in batches. I thought of using remote chunking, but it wont meet my actual requirement. I just mentioned my requirement below;

                      ____Item Processor1---->
                     |                       |
   Item Reader --->Item --Item Processor2----> ---ItemWriter
                     |                       |
                     | -- Item Processor n--->

Say for example, if my commit count is 20, I wanted the ItemReader to read 20 items and should distribute to the concurrent processors and the same should commit by the ItemWriter, and the next 20 records should read only after the successful completion of first chunk of 20.

Can anybody please help me to resolve the requirement please?

Thanks in advance.

来源:https://stackoverflow.com/questions/33604320/remote-chunking-with-the-control-on-reader-in-spring-batch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!