I am using Spring Batch in my application, till Spring 4 we could use Map based job repository so it didn't have DB dependency. But recently we migrated to Spring 6 in which Spring has removed Map based repository. This is from their documentation:
“Historically, Spring Batch provided a map-based job repository and job explorer implementations to work with an in-memory job repository. These implementations were deprecated in version 4 and completely removed in version 5. The recommended replacement is to use the JDBC-based implementations with an embedded database, such as H2, HSQL, and others”
I don't want my application to have any dependency on DB and due to some reason my organization is not letting me use in memory database. Is there any way we can remove this dependency on DB in Spring Batch for latest version.
I have tried using H2 and MySql. Both are working fine but not able to figure out a way to work without any JDBC.