RESOLVED - issue BATCH-241: Support for JobLauncher.stop() on job that hasn't started yet (delayed execution)
http://jira.springframework.org/browse/BATCH-241 Since SimpleJobLauncher no longer has a stop method, we have to do the check on execution, lower down the stack. Added explicit check for STOPPED status in SimpleJob and JoBExecution.
This commit is contained in:
@@ -58,15 +58,6 @@
|
||||
ref="jobExecutionIncrementer" />
|
||||
</bean>
|
||||
|
||||
<!--bean id="stepDao" lazy-init="true"
|
||||
class="org.springframework.batch.execution.repository.dao.JdbcStepDao">
|
||||
<property name="jdbcTemplate" ref="jdbcTemplate" />
|
||||
<property name="stepIncrementer" ref="stepIncrementer" />
|
||||
<property name="stepExecutionIncrementer"
|
||||
ref="stepExecutionIncrementer" />
|
||||
<property name="jobDao" ref="jobDao" />
|
||||
</bean-->
|
||||
|
||||
<bean id="stepInstanceDao" lazy-init="true"
|
||||
class="org.springframework.batch.execution.repository.dao.JdbcStepInstanceDao">
|
||||
<property name="jdbcTemplate" ref="jdbcTemplate" />
|
||||
|
||||
Reference in New Issue
Block a user