Hi,
I am currently using spring batch admin module for my project. The default implementation uses JobRepositoryFactoryBean to produce SimpleJobRepository bean.
When I execute a step multithreadedly with SimpleAsyncTaskExecutor, I get this error:
How can I make it threadsafe ?Code:org.springframework.dao.OptimisticLockingFailureException: Attempt to update step execution id=2 with wr ong version (1), where current version is 2 at org.springframework.batch.core.repository.dao.JdbcStepExecutionDao.updateStepExecution(JdbcSt epExecutionDao.java:185) at org.springframework.batch.core.repository.support.SimpleJobRepository.update(SimpleJobReposit ory.java:171)
Thank you.
K.


Reply With Quote
