Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation : example for in-memory repository, with no deprecated classes #4016

Closed
vincent-fuchs opened this issue Oct 18, 2021 · 2 comments

Comments

@vincent-fuchs
Copy link

The current example provided in the documentation to run a job with an in-memory repository actually uses MapJobRepositoryFactoryBean, which is deprecated.

https://docs.spring.io/spring-batch/docs/current/reference/html/index-single.html#inMemoryRepository

It would be good to review the example and provide one that shows the "real" recommended way.. I guess it would be way to use an H2 datasource (ideally, programmatically) initialized with the proper tables so that it can be used directly

@vincent-fuchs vincent-fuchs added the status: waiting-for-triage Issues that we did not analyse yet label Oct 18, 2021
@fmbenhassine fmbenhassine added in: documentation type: enhancement and removed status: waiting-for-triage Issues that we did not analyse yet labels Dec 16, 2021
@fmbenhassine fmbenhassine added this to the 4.3.5 milestone Dec 16, 2021
@fmbenhassine
Copy link
Contributor

This is similar to #3834, where I mentioned that the suggested replacement can be found in the Javadocs. There is also a first draft of a migration guide for v5.

But since this is a recurring request, I think the reference documentation should also be updated with a deprecation note and a sample.

@fmbenhassine
Copy link
Contributor

fmbenhassine commented Feb 23, 2022

Resolved with 9deaa16. We will use the same approach in the Java based samples to show a complete setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants