I am using Spring Batch 2.1.8.RELEASE. I have a file which consists of some Header information followed by some records which I need to process.
I have a step which makes use of chunk oriented processing. The step contains an implementation of the ItemReader and ItemWriter. The ItemReader implementation is thread-safe while the ItemWriter is not.
I want to use the Header information before I process( or write) any of the records. How do I ensure this while continuing to use the chunk oriented processing?
Proposed Solution : One solution could be to write a pre-process step and extract the header information.
Is there any alternate solution to this?
Thanks