I started using spring and spring batch a couple months ago and to be honest I love it although some times it makes me crazy but it's ok I'm learning .
Now I'm having a problem which I don't know how to solve.
In order to make my process robust for example if sql connection fail, I'm trying to configure the chunk processing with retry option.
The problem is once I compile and launch with the retry configuration, the process fail at the beginning when Spring is initializing beans throwing the following exception:
<batch:step id="procesa" next="fin" >
<batch:tasklet task-executor="taskExecutor" throttle-limit="15" transaction-manager="transactionManager" >
"Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'finanzas': Cannot create inner bean '(inner bean)' of type [org.springframework.batch.core.configuration.xml.S impleFlowFactoryBean] while setting bean property 'flow'; nested exception [....]"
My ItemWriter is really basic it just launch mybatis query through a dao....
Without retry the process works....
I followed chapter 5.1.6 of the user guide: http://static.springsource.org/sprin...igureStep.html
What I'm missing