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

Document when the JPA infrastructure is ready for use #26153

Closed
snicoll opened this issue Nov 25, 2020 · 1 comment
Closed

Document when the JPA infrastructure is ready for use #26153

snicoll opened this issue Nov 25, 2020 · 1 comment
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: documentation A documentation task
Milestone

Comments

@snicoll
Copy link
Member

snicoll commented Nov 25, 2020

Spring Framework supports a background setup of the JPA instructure in a separated thread. While the current section of the documentation explains the impact in terms of proxying, it does not explicitly warn users they should not attempt to use the EMF during the context bootstrap phase.

Related to that, there is a need to get a callback once the infrastructure has fully initialised and the lock is released. Publishing an event and documenting how users can listen to it could be a nice alternative to what they're currently doing in @PostConstuct or other framework callbacks that are not recommended for this type of setup. If that's accepted, the event should be published either way so that users can rely on that if they chose to bootstrap the JPA infrastructure on the main thread.

@snicoll snicoll added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 25, 2020
@rstoyanchev rstoyanchev added the in: data Issues in data modules (jdbc, orm, oxm, tx) label Nov 12, 2021
@jhoeller
Copy link
Contributor

jhoeller commented Nov 25, 2023

Let's make up our mind on this in the 6.2 timeframe, along with #21868.

@jhoeller jhoeller added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Nov 25, 2023
@jhoeller jhoeller self-assigned this Nov 25, 2023
@jhoeller jhoeller added this to the 6.2.x milestone Nov 25, 2023
@jhoeller jhoeller changed the title Notify that the JPA infrastructure is ready for use Document when the JPA infrastructure is ready for use Mar 7, 2024
@jhoeller jhoeller added type: documentation A documentation task and removed type: enhancement A general enhancement labels Mar 7, 2024
@jhoeller jhoeller modified the milestones: 6.2.x, 6.2.0-M1 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

3 participants