Joseph Kurian
Joseph Kurian

Reputation: 58

Is it possible to Implement Job Repository of Spring Batch using any of the latest versions of MongoDB with transactional support?

I have gone through several implementation of job repository using mongo dB but couldn't find any stable one, and that support transactions in job repository. I have also read a note, that mongo DB is not recommended for job repository as it does not support transactions. So need to know the possibilities of implement job repository using any latest versions of mongo DB with transactional support.

Upvotes: 0

Views: 345

Answers (1)

Mahmoud Ben Hassine
Mahmoud Ben Hassine

Reputation: 31600

I have also read a note, that mongo DB is not recommended for job repository as it does not support transactions.

MongoDB added support for transactions in v4. There is a feature request against Spring Batch to use MongoDB as a job repository: https://github.com/spring-projects/spring-batch/issues/877, but this feature has not been implemented yet.

Upvotes: 1

Related Questions