aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1652) JPA container does not register EntityManagerFactory under its name
Date Fri, 06 Jan 2017 15:27:58 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15804784#comment-15804784
] 

Christian Schneider commented on ARIES-1652:
--------------------------------------------

I think both EMF and EMFBuilder should be registered in the name of the persistence bundle.


> JPA container does not register EntityManagerFactory under its name
> -------------------------------------------------------------------
>
>                 Key: ARIES-1652
>                 URL: https://issues.apache.org/jira/browse/ARIES-1652
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: jpa-2.3.0
>            Reporter: Erwin Hogeweg
>
> When the DataSource and the PersistenceProvider are available the container registers
the EntityMangerFactory* services. However, the EntityManagerFactoryBuilder Service shows
up as being registered by the container bundle while the EntityMangerFactory Services shows
up as being registered by the bundle that provides the persistence unit.
> g! b 53
> org.apache.aries.jpa.container_2.3.0 [53]
>   Id=53, Status=ACTIVE      Data Root=...
>   "Registered Services"
>     {org.osgi.framework.hooks.weaving.WeavingHook}=...
>     {org.osgi.service.cm.ManagedService}=...
>     {org.osgi.service.jpa.EntityManagerFactoryBuilder}={osgi.unit.version=4.1.0.SNAPSHOT_20170104-2222,
osgi.unit.name=my.pu, osgi.unit.provider=org.eclipse.persistence.jpa.PersistenceProvider,
service.id=119, service.bundleid=53, service.scope=singleton}
>   Services in use:
>     {javax.sql.DataSource}=...
>     {javax.persistence.spi.PersistenceProvider}=...
> g! b 111
> com.my.model_4.1.0.SNAPSHOT_20170104-2222 [111]
>   Id=111, Status=ACTIVE      Data Root=/Users/erwin/.../org.eclipse.osgi/111/data
>   "Registered Services"
>     {javax.persistence.EntityManagerFactory}={osgi.unit.version=4.1.0.SNAPSHOT_20170104-2222,
osgi.unit.name=my.pu, osgi.unit.provider=org.eclipse.persistence.jpa.PersistenceProvider,
service.id=125, service.bundleid=111, service.scope=singleton}
>   No services in use.
> Observed with equinox 3.10.2.v20150203-1939 and Karaf 4.0.7



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message