Hi All,
Could you give me some advised how to setup the following case with spring batch:
I've have to read several types of objects from the database and I have to write those object to a single xml file.
so you could say I've multiple readers where each reader gives a different type of object and one writerCode:DB XML | Locations | |----------------------------->| | | Vehicles | | |----------------------------->|----------------------->| | Movements | | |----------------------------->| |
Now I wondering what the best thing is todo:
* Should I use multiple steps (reader/writer) to read all data from the database put it somewhere in the cache. And let the last reader/writer, read the cache and write to the file. In this case where should I store the cache? I don't want to those objects in the database? but other job(data/params) have to be stored in the database?
* Write a composite reader (but I'm not sure if this is possible for my case)?
* something else?
Regards,
D.Reijntjens


Reply With Quote
