fix wrong Java Configuration for In-Memory JobRepository

This commit is contained in:
clf
2018-11-08 15:45:27 +09:00
committed by Mahmoud Ben Hassine
parent ed84a8cb29
commit f90198fef8

View File

@@ -758,10 +758,8 @@ There are scenarios in which you may not want to persist your
// This would reside in your BatchConfigurer implementation
@Override
protected JobRepository createJobRepository() throws Exception {
JobRepositoryFactoryBean factory = new JobRepositoryFactoryBean();
factory.setDataSource(dataSource);
MapJobRepositoryFactoryBean factory = new MapJobRepositoryFactoryBean();
factory.setTransactionManager(transactionManager);
factory.setIsolationLevelForCreate("ISOLATION_REPEATABLE_READ");
return factory.getObject();
}