java-batch

JSR 352 :How to collect data from the Writer of each Partition of a Partitioned Step?

JSR 352 :How to collect data from the Writer of each Partition of a Partitioned Step?
So, I have 2 partitions in a step which writes into a database. I want to record the number of rows written in each partition, get the sum, and print it to the log;I was thinking of using astaticvariable in the Writer and use Step Context/Job Context
What Others Are Reading