Spring Batch - Pass parameter from Writer to Listener for afterJob(JobExecution jobExecution)

I have a writer from which I have a dynamic value that needs to be passed to JobExecutionListener's afterJob(JobExecution jobExecution). Would appreciate some advice. Thank you.






allow-start-if-complete="true"

parent="XXX">




writer="WRITER"

commit-interval="100"/>










value="DEFAULT IS FALSE DURING INITIALIZATION/MIGHT GET CHANGED IN WRITER, GET THIS VALUE FROM WRITER"/>







...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts