The way I would imagine this working would be that a configuration object would be explicitly shared between EntityManagerFactories/SessionFactories. Is it possible to detect/prevent this with a meaningful error message in an OSGi setup? Presumably the shared configuration/entity classes would have to be in a separate shared bundle to even attempt this.
|