Timothy Ward created ARIES-1670:
-----------------------------------
Summary: Aries JPA should register EntityManagerFactory services
after use of the EntityManagerFactory Builder
Key: ARIES-1670
URL: https://issues.apache.org/jira/browse/ARIES-1670
Project: Aries
Issue Type: Bug
Components: JPA
Affects Versions: jpa-2.6.0
Reporter: Timothy Ward
Assignee: Christian Schneider
Support for version 1.1 of the OSGi JPA Service. Ensuring that the EMF becomes
visible as a service with the relevant service properties, and that it is
re-registered after rebinding configuration.
"In the case of an incomplete Persistence Unit no Entity Manager Factory can be
initially registered, however once configured using an Entity Manager Factory
Builder service the JPA Service must register the created Entity Manager
Factory as a service. The registered service must include any sup- plied
configuration properties that match the recommended OSGi service property types
as service properties. The javax.persistence.jdbc.password property must be
omitted from these service properties.
If the Entity Manager Factory Builder service is later used to change the
configuration being used by the Entity Manager Factory Service then the
registered Entity Manager Factory service must be unregistered and the new
object registered."
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)