0

I want to parse huge file with XML data and insert records into SQL server 2008. Database connection/Data insertion is managed by product framework. I read XML data, validate it, create object and pass it to framework for insertion.

I am planning to divide XML file into small files, parse it using parser threads and run parallel load using different threads.

I am new to Spring framework. How can I do this using Spring Batch framework? Do I need to divide file in Spring Batch? Will I be able to load data parallely?

Shivraj Nimbalkar
  • 159
  • 1
  • 1
  • 11
  • You can user ExecuterFramwork to split huge xml and pass it to threads. For parsing XML use SAX parser. – Manjunath D R Aug 08 '14 at 16:25
  • you can use [this answer](http://stackoverflow.com/questions/25021689/spring-batch-reading-a-large-flat-file-choices-to-scale-horizontally) as skeleton – Luca Basso Ricci Aug 08 '14 at 19:03

0 Answers0