May 13th, 2009, 10:24 AM
ItemReader returning one list
I'm stucked with a probably little problem, I'd be glad if someone got an idea how to solve it:
One step of my batch job is supposed to do
- read a table from a SAP-connection
- do some business stuff with the rows
- create some FooItems based on the business an write it out
So far I thought I could you a custom ItemReader which is called only once and returns a List of FooItems. But then I don't know how to handle this list. The AggregateItemReader doesn't seem to fit. May be a custom mapper can handle the list? Are there any examples out there how to deal with this problem?