| Summary: | Gemini JPA registers EMFBuilder service using its own bundle context | ||
|---|---|---|---|
| Product: | [RT] Gemini.JPA | Reporter: | Sahoo <sanjeeb.sahoo> |
| Component: | Core | Assignee: | Michael Keith <michael.keith> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eduard.bartsch, gunnar, thomas.gillet.2 |
| Version: | 1.0.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Sahoo
Does the spec require the EMFBuilder service to be exported using the context of the bundle which defines the PU? Strictly speaking it does. The reason was that it was supposed to ensure class space consistency when looking up the services, but in practice, because the entity classes are not part of the service, it wouldn't provide the consistency you would expect. I'm also concerned by this bug, because I'm trying to retrieve the persistence bundle used to publish an EMF/EMFB.
The workaround is to use the "osgi.managed.bundles" service property, but this is Gemini specific (and the property value needs parsing since it is formatted as "{bsn}_{version}").
|