Spring-batch MultiResourceItemReader vs commit-interval

和自甴很熟 提交于 2019-12-13 03:06:47

问题


I am using spring-batch MultiResourceItemReader to read a directory of XMLs and delegating it to StaxEventItemReader.

The commit-interval on the chunk acts on MultiResourceItemReader i.e. the commit happens for each XML.

I want to make the commit-interval act on StaxEventItemReader so that I can commit my huge XML data in chunks instead of one XML at a time.

Any help?

来源:https://stackoverflow.com/questions/29129056/spring-batch-multiresourceitemreader-vs-commit-interval

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