Spring批处理不以并行模式执行流程.我究竟做错了什么?
<split id="preprocessingStep" next="decompress">
<flow>
<step id="step11" next="step22">
<tasklet ref="my1" />
</step>
<step id="step22">
<tasklet ref="my2" />
</step>
</flow>
<flow>
<step id="step33">
<tasklet ref="my3" />
</step>
</flow>
</split>
Run Code Online (Sandbox Code Playgroud) 不能停止弹簧批量步骤..
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:batch="http://www.springframework.org/schema/batch"
xsi:schemaLocation="
http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<description>Example job to get you started. It provides a skeleton for a typical batch application.</description>
<bean id="HelloTasklet" class="c.c.c.HelloTasklet" scope="step"/>
<bean id="completionPolicy" class="org.springframework.batch.repeat.policy.DefaultResultCompletionPolicy"/>
<bean id="chunkTimeout" class="org.springframework.batch.repeat.policy.TimeoutTerminationPolicy">
<constructor-arg value="3"/>
</bean>
<bean id="commitCount" class="org.springframework.batch.repeat.policy.SimpleCompletionPolicy">
<property name="chunkSize" value="200" />
</bean>
<bean id="chunkCompletionPolicy" class="org.springframework.batch.repeat.policy.CompositeCompletionPolicy">
<property name="policies">
<list>
<ref bean="chunkTimeout" />
<ref bean="commitCount" />
</list>
</property>
</bean>
<bean id="RandomChunkSizePolicy" class="c.c.c.RandomChunkSizePolicy"/>
<job id="importInvoices" xmlns="http://www.springframework.org/schema/batch">
<listeners>
<listener ref="loggingListener"/>
</listeners>
<step id="vehicleStep" next="hello">
<tasklet>
<chunk reader="vehicleReader" …Run Code Online (Sandbox Code Playgroud)