Hi,
Thanks for the response but yes i've done it
here is my blueprint file
<service
interface="com.inovelan.cloud.authentication.api.OpenAmService">
<bean
class="com.inovelan.cloud.authentication.impl.OpenAmServiceImpl">
<jpa:context unitname="cloud-authentication-impl"
property="entityManager" />
<tx:transaction method="*" value="Required" />
</bean>
</service>
and my persistence file
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="cloud-authentication-impl"
transaction-type="JTA">
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/mysqlds)</jta-data-source>
<class>com.inovelan.cloud.authentication.impl.entities.Utilisateur</class>
<properties>
<property name="openjpa.Log"
value="DefaultLevel=INFO, Runtime=TRACE,
JDBC=TRACE" />
<property name="openjpa.ConnectionFactoryProperties"
value="PrettyPrint=true,PrintParameters=false" />
<property name="openjpa.RuntimeUnenhancedClasses"
value="supported" />
</properties>
</persistence-unit>
</persistence>
--
View this message in context:
http://karaf.922171.n3.nabble.com/JPA-JTA-tp4034133p4034152.html
Sent from the Karaf - User mailing list archive at Nabble.com.