Description
It is fairly simple to utilize GlobalPersistenceManager via ServiceFactory interface to register contexts when asked for. Couple of things would make this more robust.
1) Introduction/Implementation of PersistenceContextProvider.unregisterContext() which would require counting of registration calls so that unregistration would not be premature.
2) Returning of EntityManagerFactory from PersistenceContextProvider.registerContext call which omit the roundtrip via bundle context
I guess that container context project could provide this kind of implementation out of the box to support other than blueprint environments
Attachments
Issue Links
- is related to
-
ARIES-1083 Create either a synchronised entity manager or a proxy which creates an entity manager for each request
- Resolved