Share persistence context between data sources #31730
Unanswered
Treiblesschorle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
is it possible to share a persistence context between different data sources? I have a distributed DB setup with a primary and a secondary. If I configure several data sources, e.g. as described here and inject two different
EntityManagers
using@PersistenceUnit(<dataSourceName>)
, is it possible for the two entity managers to share the same persistence context?Beta Was this translation helpful? Give feedback.
All reactions