https://grokonez.com/spring-framework/spring-batch/use-intercepting-job-execution-spring-batch
How to use Intercepting Job Execution in Spring Batch
For Intercepting Job Execution feature, Spring Batch provides an interface called JobExecutionListener to notify events in a Job lifecycle. So in the tutorial, JavaSampleApproach will guide how to configure Intercepting Job Execution with JobExecutionListener.
Related Posts:
public interface JobExecutionListener {
void beforeJob(JobExecution jobExecution); void afterJob(JobExecution jobExecution);
}
Function void beforeJob(JobExecution jobExecution)
: is invoked before a job executes.
Function void afterJob(JobExecution jobExecution)
: is invoked after completion of a job.
https://grokonez.com/spring-framework/spring-batch/use-intercepting-job-execution-spring-batch
How to use Intercepting Job Execution in Spring Batch
#springbatch #job #intercepting