OSGi: support multiple persistence units

Description

Theoretically, https://hibernate.atlassian.net/browse/HHH-8118#icft=HHH-8118 (and others) should allow ORM 5 to support multiple persistence units w/ 1 instance of core/em/osgi.

As a test, create a 2nd copy of the unmanaged-native quickstart. Name it unmanaged-native2 and scope the commands as dp2. Actions on unmanaged-native and unmanaged-native2 should be isolated and not affect each other. In ORM 4, this was not the case due to the static nature of everything.

Activity

Show:

Brett Meyer October 28, 2013 at 6:50 PM

Creating the OsgiClassLoader must be moved out of the BundleActivator. Instead, create it within OsgiSessionFactoryService#getService and OsgiPersistenceProviderService.java#getService

Out of Date

Details

Assignee

Reporter

Priority

Created October 28, 2013 at 6:46 PM
Updated May 5, 2022 at 10:09 AM
Resolved May 5, 2022 at 10:09 AM