IN PROGRESS - issue BATCH-127: Allow job configuration to control re-entrant behavior

http://opensource.atlassian.com/projects/spring/browse/BATCH-127

SimpleJobRepository.findOrCreateJob now blocks if the transaction isolation level is high enough (see Javadocs).
This commit is contained in:
dsyer
2007-12-15 15:25:11 +00:00
parent 92d72468fa
commit f49c9d9526
11 changed files with 171 additions and 70 deletions

View File

@@ -14,9 +14,8 @@
<property name="username" value="${batch.jdbc.user}" />
<property name="password" value="${batch.jdbc.password}" />
</bean>
<!-- bean id="dataSource" class="test.jdbc.datasource.DerbyDataSourceFactoryBean"/-->
<bean id="sqlTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager" lazy-init="true">
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager" lazy-init="true">
<property name="dataSource" ref="dataSource" />
</bean>
@@ -29,11 +28,13 @@
<bean class="java.lang.System" factory-method="getProperties"/>
</property>
<property name="ignoreInvalidKeys" value="true" />
<property name="order" value="1"/>
</bean>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:batch.properties" />
<property name="ignoreUnresolvablePlaceholders" value="false" />
<property name="order" value="2"/>
</bean>
<bean id="incrementerParent" class="${batch.database.incrementer.class}" abstract="true">