Here's my scenario:
Under Competing Consumers pattern (http://www.enterpriseintegrationpatt...Consumers.html)
The Sender sends request message chunks to consumers, each consumer is implemented as Spring Batch Parallel Job, and after processing the request chunk in multiple threads, Consumer needs to reply the chunk process result to Sender.
So here comes my question: In a Spring Batch Parallel Job, how can we summarize process results from multiple concurrent ItemWriters?
What I can think out is this way:
Each item writer thread writes its process result to database table, and then create another step for this job to collect the information from db and then reply it to the sender. But creating a table for it a quite a overhead in my case.....
Does anyone have any good solution?
btw: I am using S.B 1.0.0.FINAL


Reply With Quote
