我正在开发Spring-mvc应用程序。
我需要在运行时安排批处理作业
目前我专注于creating batch job at runtime
。
我正在this举例。
在该示例中,以下条目位于xml文件
中<!-- Failed Step Tasklet Declaration -->
<bean id="failedStepTasklet" class="com.onlinetechvision.tasklet.FailedStepTasklet">
<property name="taskResult" value="Error occurred!" />
</bean>
<batch:job id="secondJob">
<batch:step id="firstFailedStep">
<batch:tasklet ref="failedStepTasklet" />
</batch:step>
</batch:job>
我的要求是在运行时创建批处理作业和批处理步骤。每个作业中可以有多个批处理作业以及多个批处理步骤。
任何人都可以帮助我,如何在运行时配置。
感谢。