MultiResourceItemReader with a custom delegate keeps reading the same file
问题 Hello there java wizards, I am having a lot of trouble getting into the spring batch. Straight to the point for now. I need to process all files (xmls) from a folder and them write them back, with a small addition. The problem was that I want to preserve the input filename. The solution that I have for this is a MultiResourceItemReader that delegates to a custom Itemreader that in turn calls the StaxEventItemReader and returns a custom item that holds the marshalled xml and the filename.