Spring batch multi file writer
Collectives on Stack Overflow. Learn more. Asked 6 years, 9 months ago. Active 2 years, 8 months ago. Viewed 3k times. Please do suggest some options with sample code if possible. Add a comment. Active Oldest Votes. You have couple of options: You can use CompositeItemWriter which calls collection of item writers in defined order so you can define one item writer which will write records based on data from DB and second will count records and write that to another file.
Nenad Bozic Nenad Bozic 3, 16 16 silver badges 42 42 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Hello, So I have slightly different problem, I have 2 writers db writer and file writer. I was thinking composite item writer but would really value your input. Thanks, my email address is tshah egov. I would prefer to have them separately for better design and configurable.
Hi, I am working on similar problem. Hi Swathi, It is such a long time, Let I try to find the source code. If I have it, I will send over. Thanks, Nghia. Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:.
Email required Address never made public. Name required. Follow Following. Sign me up. Already have a WordPress. Log in now. Post was not sent - check your email addresses! Sorry, your blog cannot share posts by email. The Slaves in this picture are all identical instances of a Step, which could in fact take the place of the Master resulting in the same outcome for the Job. The Slaves are typically going to be remote services, but could also be local threads of execution.
The messages sent by the Master to the Slaves in this pattern do not need to be durable, or have guaranteed delivery: Spring Batch meta-data in the JobRepository will ensure that each Slave is executed once and only once for each Job execution.
If required, we can pass data from the master to the slave. The meta data i.
0コメント