RESOLVED - issue BATCH-554: *StepFactoryBeans should have a list of exceptions that do and don't cause rollback.

Removed the list of exceptions in favour of tx attributes (use +ExceptionType in config file)
This commit is contained in:
dsyer
2008-06-23 13:06:07 +00:00
parent f328615102
commit fd07883253
5 changed files with 63 additions and 27 deletions

View File

@@ -33,9 +33,10 @@
</bean>
<bean id="step2" parent="skipLimitStep">
<property name="commitInterval" value="2" />
<property name="skipLimit" value="1" />
<property name="noRollbackForExceptionClasses"
value="org.springframework.batch.item.validator.ValidationException" />
<property name="skipLimit" value="1" />
<!-- No rollback for exceptions that are marked with "+" in the tx attributes -->
<property name="transactionAttribute"
value="+org.springframework.batch.item.validator.ValidationException" />
<property name="itemReader"
ref="tradeSqlItemReader" />
<property name="itemWriter"