Read flat file and write to multiple writers which will write different objects
问题 i have a requirement to read a flatfile and create a TRADE java object.Now processor should create 3 different java objects based on TRADE java object. i have to write these 3 different java objects to 3 differnt xml files. simply I want to one read 3 processors and 3 write to multiple xml files based on the read data. I have tried compositeItemWriter but it will take the same object for writing.but i have 3 different object consumer,envelope,deliveryOrder SampleInput :