|
|
Possible Job for spring batch
I have an existing daily job that
1) Gets an xml file using from.
2) Transforms it
3) Posts to the transformed XML to another service through from so that it gets consumed ( xml parsing and insertion into db)
Is spring batch suitable for above job?
Any help is greatly appreciated.
Yes, Spring Batch suits, if you sequentially parse XML by SAX and process data in XML item by item. In this case, you benefit from Spring Batch's chunk-oriented processing.
Otherwise, Spring Batch does not suit, if you need random access to the XML by loading all the data from XML into memory. In this case, Spring Batch does not stand out.
The above is my personal opinion. |
|