I need to to change the spring batch application where I don't need to persist in the spring batch metadata tables, instead I need to use the in memory metadata. My application is not Spring-Boot application, and I am using java configuration for spring. Also I need to persist into the application tables so I need to use datasource.
Asked
Active
Viewed 86 times
0
-
Possible duplicate of [Define an in-memory JobRepository](https://stackoverflow.com/questions/44238232/define-an-in-memory-jobrepository) – Mahmoud Ben Hassine Jul 04 '19 at 12:44
1 Answers
0
Add in-memory DB to your Gradle project dependencies, for example, h2 :
compile 'com.h2database:h2:1.4.194'
Batch automatically will store the metadata in h2.

Valeriy K.
- 2,616
- 1
- 30
- 53