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

Reply via email to