我有以下流程声明:
return flow -> flow.handle(myHandler)
.handle(springBatchJobLauncher)
.gateway(acknowledgementFlow);
启动器看起来像这样:
@ServiceActivator
public JobExecution launch(JobLaunchRequest request) throws JobExecutionException {
Job job = request.getJob();
JobParameters jobParameters = request.getJobParameters();
return jobLauncher.run(job, jobParameters);
}
我需要acknowledgementFlow在开始的工作完成后立即开始springBatchJobLauncher。按照这个配置能保证吗?
梦里花落0921
相关分类