The batch job is:
Reading from a csv file
Create an xml file for every record(line) in the csv with name Patent.ID.xml(where ID is a field i
I couldn't find a way to make Luca's solution to work, so I extended MultiResourceItemWriter this way:
public class MyMultipleItemWriter extends MultiResourceItemWriter
{
@Override
public void write(List extends MyBeanXml> items) throws Exception
{
this.setResourceSuffixCreator(new MySuffixCreator(items.get(0).getField()));
super.write(items);
}
}