Hi all,
In one of my batch, i need to call a web-service to enrich some data from an item read in db, check some values and then write this enrich item into another table.
My web-service can support several requests in the same call in order to minimize the number of calls to the web-service. Actually my web-service call is defined as a processor:
It seems that only the item writer can support writing several items in one call using property commit-interval in the step definition.Code:<batch:tasklet task-executor="taskExecutor"> <batch:chunk reader="bookingReader" processor="bookingEnrichWSProcessor" writer="bookingCompositeWriter" commit-interval="10" /> </batch:tasklet>
What i need is to read items ten by ten with the reader, and call the ws with the 10 items before wirting them again in another table.
Is it possible to do that in a processor class? or should i port this logic in a writer.
Thanks for our help


Reply With Quote