How do you declare the datasource ? (config properties file) Do you see the datasource list with karaf commands ?
karaf@root()> jdbc:ds-list Name │ Product │ Version │ URL │ Status Le 07/12/2017 à 15:30, Dominik Marciniszyn a écrit : > In persistence.xml I have got: > <persistence-unit name="my_persistence_unit" transaction-type="JTA"> > > <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> > > <jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=my_persistence_unit)</jta-data-source> > > > <mapping-file>META-INF/orm.xml</mapping-file> > ... > > <exclude-unlisted-classes>true</exclude-unlisted-classes> > > <properties> > <property name="hibernate.dialect" > value="org.hibernate.dialect.Oracle10gDialect" /> > <property name="hibernate.archive.autodetection" > value="class"/> > <property name="hibernate.enable_lazy_load_no_trans" > value="true"/> > <property name="hibernate.connection.isolation" value="4"/> > <property name="hibernate.connection.autocommit" value="false"/> > </properties> > </persistence-unit> > </persistence> > > I have got the two Karafs with my programs and then I've added the Cellar > and Cellar-DOSGI features. Next I've put both instances into one group (not > default). > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
