jobs.jobExecutionContextSample.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <description> Simple example of inter-step communication using persistent job execution context. </description> <bean id="jobExecutionContextSample" parent="simpleJob"> <property name="steps"> <list> <bean id="step1" parent="taskletStep"> <property name="tasklet" ref="sender" /> </bean> <bean id="step2" parent="taskletStep"> <property name="tasklet" ref="receiver" /> </bean> </list> </property> </bean> <bean id="sender" class="org.springframework.batch.sample.tasklet.DummyMessageSendingTasklet"> <property name="message" value="Hey!" /> </bean> <bean id="receiver" class="org.springframework.batch.sample.tasklet.DummyMessageReceivingTasklet" /> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy