title: spring batch MapJobRepositoryFactoryBean
body: <p>We get the below error when using spring batch .</p>
  
  <p>org.springframework.dao.OptimisticLockingFailureException: Attempt to update step execution id=8827 with wrong version (1), where current version is 2</p>
  
  <p>What I observed from different forums was that we were using org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean which is not thread safe and not adivsable to be used in production.</p>
  
  <p>We do not want to persist the meta data of the jobs or use in memory database  - Is there any other alternative to MapJobRepositoryFactoryBean  ?</p>
  
  <p>Thanks</p>
  
  <p>Lives</p>