I just can second that, I have no hassle in using JPA with Aries blueprint, jpa and OpenJPA in my projects ...
regards, Achim 2012/10/26 James Carman <[email protected]>: > OpenJPA is much more OSGi-friendly. You might give that a go. We've > switched and never looked back. > > On Fri, Oct 26, 2012 at 6:48 AM, dealbitte <[email protected]> wrote: >> Hi >> >> I am trying to set up Hibernate and Postgresql in conjunction with Karaf. I >> have a maven project (archetype: osgi) that depends on Hibernate and >> Postgresql and I want to install this project in karaf. I would like to know >> if there are design patterns to set up a JPA provider (like Hibernate) along >> with a database (like Postgres). >> >> I installed hibernate dependencies, via feature file shown below >> >> <feature name="hibernate"> >> <bundle>wrap:mvn:org.hibernate/hibernate-core/4.1.7.Final</bundle> >> >> <bundle>wrap:mvn:org.hibernate/hibernate-entitymanager/4.1.7.Final</bundle> >> >> <bundle>wrap:mvn:org.hibernate.javax.persistence/hibernate-jpa-2.0-api/1.0.1.Final</bundle> >> >> <bundle>wrap:mvn:org.hibernate.common/hibernate-commons-annotations/4.0.1.Final</bundle> >> <bundle>wrap:mvn:org.jboss.logging/jboss-logging/3.1.0.GA</bundle> >> </feature> >> >> When I tried to install my bundle, it complains about missing >> 'hibernate.cfg.xml' even though this is available inside the bundle. >> >> I am looking for some examples, tutorials that can help to understand the >> usage of JPA provider with database. I am not restricted to Hibernate and >> Postgres. >> >> regards, >> Rakesh >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/JPA-Usage-Strategy-for-using-Hibernate-Postgresql-tp4026586.html >> Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/>
