I had in in my persistence.xml but never worked on karaf restart :( Nevertheless, do you know why the problem does not occur on bundle installation? Thank you
Here is my persistence.xml <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"> <persistence-unit name="jobMessage" transaction-type="JTA"> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/eventStore)</jta-data-source> <non-jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/eventStore)</non-jta-data-source> <class>my.example.messages.JobMessage</class> <class>my.example.messages.EventMessage</class> <exclude-unlisted-classes>true</exclude-unlisted-classes> <properties> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" /> <property name="openjpa.Multithreaded" value="true" /> <property name="openjpa.DynamicEnhancementAgent" value="false" /> <property name="openjpa.RuntimeUnenhancedClasses" value="supported" /> </properties> </persistence-unit> </persistence> -- View this message in context: http://karaf.922171.n3.nabble.com/Persisting-based-on-OpenJPA-fails-after-karaf-restart-tp4026857p4026861.html Sent from the Karaf - User mailing list archive at Nabble.com.
