I am doing this POC and plan to use Spring batch for some response jobs via MQ via Spring integration. The response jobs will be triggered via a command message in MQ.
Now it a a XML document which has some nodes in them with their attributes. What I need to do is do some calculation like summing up all the dollar amount number of occurrences of a particular node and write it to a footer.
I already know that I will be using the Footer Call back but how do I aggregate those information which I have already looped through. Where would be the best place to maintain that state ..again taking care of any unforeseen multi threading issues ?