[gemini jpa] Gemini JPA in an OSGI service [message #701027] |
Sun, 24 July 2011 09:17  |
Eclipse User |
|
|
|
Hi,
I have an application (RAP) that uses eclipse link without any major issues. Now I'd like to change my implementation to use gemini jpa (without dbaccess). All my persistence actions and entities are part of a custom bundle that provides an OSGI service (declarative). How can this service access the EntityManagerFactory?
I downloaded gemini jpa and added the two jars to my target platform. I also removed the org.eclipse.persistence.jpa.osgi bundle. Now I start my application and type ls to see all available services, but no EntityManagerFactory is there. Shouldn't there be a registered service per punit? (Also getting a service reference from the bundle context using the EntityManagerFactory.class is no successful.)
Maybe I got something wrong. Any help is welcome.
Thanks.
Karsten
|
|
|
|
Re: [gemini jpa] Gemini JPA in an OSGI service [message #724857 is a reply to message #701725] |
Tue, 13 September 2011 07:09   |
Eclipse User |
|
|
|
Hi,
I got a similar issue. Currently I'm using
* DBAccess RC1
* Gemini JPA RC1
* EclipseLink 2.3.0
* Eclipse 3.6.2
I have a declarative service and I'm defining a service reference to "EntityManagerFactoryBuilder". On startup this message comes up:
Quote:
!ENTRY de.lmu.ifi.dbs.medmon.medic.core 4 0 2011-09-13 13:00:46.214
!MESSAGE [SCR] Error while trying to bind reference Reference[name = EntityManagerFactoryBuilder, interface = org.osgi.service.jpa.EntityManagerFactoryBuilder, policy = static, cardinality = 0..n, target = null, bind = bindEntityManagerFactoryBuilder, unbind = unbindEntityManagerFactoryBuilder]
Details:
Problematic reference = Reference[name = EntityManagerFactoryBuilder, interface = org.osgi.service.jpa.EntityManagerFactoryBuilder, policy = static, cardinality = 0..n, target = null, bind = bindEntityManagerFactoryBuilder, unbind = unbindEntityManagerFactoryBuilder]
of service component = de.lmu.ifi.dbs.medmon.medic.core.SensorService
component implementation class = de.lmu.ifi.dbs.medmon.medic.core.sensor.SensorService
located in bundle with symbolic name = de.lmu.ifi.dbs.medmon.medic.core
bundle location = reference:file:/home/muki/Development/workspace_medmon/Medmon/de.lmu.ifi.dbs.medmon.medic.core/
What does this "problematic reference" mean? I'm trying to change to the newer versions (Eclipse 3.7, DBAccess RC1, Gemini JPA RC3) and report if the error still occurs.
cheers,
Muki
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04867 seconds