[
https://issues.apache.org/jira/browse/ARIES-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091691#comment-13091691
]
Timothy Ward commented on ARIES-735:
------------------------------------
The Aries JPA container is not actually an implementation of the OSGi JPA
Service specification. It provides managed JPA, not the unmanged support
described in the spec. Part of providing this managed support means that the
persistence unit lifecycle in Aries does not really fit with the concept of the
EntityManagerFactoryBuilder, or with incomplete persistence units.
Effectively this support is intentionally missing from Aries because
implementing it would prevent us from providing container-managed JPA. As Aries
is trying to provide a container-managed programming model this would be a
significant issue. I'm happy to look again into whether providing an
EntityManagerFactoryBuilder is technically feasible, but as we still won't
attempt to pass the current JPA service specification I don't know if providing
it would actually help you.
Tim
> Aries should support the org.osgi.service.jpa.EntityManagerFactoryBuilder
> service
> ---------------------------------------------------------------------------------
>
> Key: ARIES-735
> URL: https://issues.apache.org/jira/browse/ARIES-735
> Project: Aries
> Issue Type: Improvement
> Components: JPA
> Affects Versions: 0.3
> Reporter: Christoph Läubrich
>
> The OSGi Specification describes the service as follows:
> This service interface offers JPA clients the ability to create instances of
> EntityManagerFactory for a
> given named persistence unit.
> located in org.osgi.service.jpa / JPA Package Version 1.0.
> Bundles wishing to use this package must list the package in the
> Import-Package header of the bundle's
> manifest. For example:
> Import-Package: org.osgi.service.jpa; version="[1.0,2.0)"
> Aries seems not using this package, nor registering any service against this
> interface.
> Preffered solution:
> Either include this interface in the base jpa bundle or provide a seperate
> one and import it to register EntityManagerFactoryBuilder as described in the
> specification
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira