Aug 16th, 2011, 04:23 AM
Design batch application
I'm new with Spring and I need to developp a batch application. I already read the documentation but I don't know where to start.
I explain the application flow :
External component A:
This component writes data on two files F1 and F1_err(in case of errors). Each hour, this component stop writing on these files and writes data on two new files F2 and F2_err; and so on.
External component B:
There are three types of data stored in a database. This data is updated in the database by an external component B. This data is necessary for the processing after reading.
The application has to read every "poll_interval" seconds the two files sequentially. Each line will be mapped to an object that I'll define. After each read, the app does some processing on the object using the data updated by the external component B.
The step of writing the processed data is not defined for now. I wanted to start with the design of reading/processing only.
Thanks for your help