If all goes well then aries jpa should register an EntityManagerFactory on behalf of your bundle.
Can you check if you bundle exports such a service when it is started?

Do you have a jpa provider installed? For e.g. OpenJPA there is no feature so you will have to install the bundles. Like described in the readme of my tutorial.

Christian

Am 01.02.2013 16:46, schrieb lbu:
Hi Christian,
I've followed you tutorial and now I've switched to JTA but the result is
again a bundle in GracePeriod:


16:39:39,556|DEBUG|.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
==> Found initial references null for OSGi service
(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=BT-IO-FIX))(objectClass=javax.persistence.EntityManagerFactory))
16:39:39,557|DEBUG|org.apache.aries.blueprint.container.BlueprintContainerImpl
==> Tracking service references: [.component-1]
16:39:39,557|INFO
|org.apache.aries.blueprint.container.BlueprintContainerImpl      ==> Bundle
bt.service.io.fix is waiting for dependencies
[(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=BT-IO-FIX))(objectClass=javax.persistence.EntityManagerFactory))]
16:39:39,557|DEBUG|org.apache.aries.blueprint.container.BlueprintEventDispatcher
==> Sending blueprint container event BlueprintEvent[type=GRACE_PERIOD,
dependencies=[(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=BT-IO-FIX))(objectClass=javax.persistence.EntityManagerFactory))]]
for bundle bt.service.io.fix




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-JPA-and-EclipseLink-tp4027571p4027576.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to