I have a batch process that I need to implement. My clients preferred batch framework is Spring Batch.
The logical process is
The process is likely to touch quite a large number of records, and I'd like to keep the updating transaction as short as possible, so my intended design is to
I'm intending to use an existing data access layer to do the database work, rather than using the spring JdbcCursorItemReader.
Is this something that Spring Batch can cope with readily, or do I need to think again?
Thanks in advance
Actually this is described in Common Batch Patterns document; you may read section 11.4 Driving Query Based ItemReaders
By using a CompositeItemWriter having a file output writer and your db update logic and a processor that takes input from your first step, you may simulate the behaviour wanted.
Hope that this helps