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:
dsyer
2008-02-11 19:54:21 +00:00
parent 2ce3013ac1
commit 2b87124b85
25 changed files with 140 additions and 116 deletions

View File

@@ -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" />