Java Spring在运行时定义批处理作业
我正在研究SpringMVC应用程序 我需要在运行时安排批处理作业 目前,我的重点是Java Spring在运行时定义批处理作业,java,spring-mvc,configuration,spring-batch,Java,Spring Mvc,Configuration,Spring Batch,我正在研究SpringMVC应用程序 我需要在运行时安排批处理作业 目前,我的重点是在运行时创建批处理作业 我正在从中学习 在本例中,以下条目位于xml文件中 <!-- Failed Step Tasklet Declaration --> <bean id="failedStepTasklet" class="com.onlinetechvision.tasklet.FailedStepTasklet"> <property name="taskResul
在运行时创建批处理作业
我正在从中学习
在本例中,以下条目位于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>
我的要求是在运行时创建批处理作业和批处理步骤。每个作业中可以有多个批处理作业以及多个批处理步骤
任何人都可以帮助我,如何在运行时配置
谢谢。创建实际流程或只是实例化预定义作业?@MichaelMinella,我可以预定义tasklet,但我不能预定义作业。所以我想在运行时创建
batch:job
和batch:step
。