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:
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)
How can I make it threadsafe ?
Thank you.
K.