Hi, I think you have to install the transaction feature. Moreover, do not use <tx:transaction method="*" value="Required"/> in the bean "com.inovelan.cloud.jbpm.impl.Activator" because it already has a reference to the transaction manager.
Regards, -- Nicolas Dutertry -----Original Message----- From: jimmy [mailto:[email protected]] Sent: mardi 26 août 2014 15:31 To: [email protected] Subject: get transaction manager Hi Im trying to use Jbpm + drools engine in karaf environnement. Every jbpm integration example projects i've found are using spring. But i don't want use spring. I've already an entitymanager (using jpa transaction features) The jbpm persistence api needs an entitymanagerfactory (i can get via em.getEntityManagerFactory using blueprint) But I need also an transaction manager (i see that aries provides this) --> how can i get it ? (see reference osgiJtaTransactionManager) Here is my blueprint but it does'nt work. --> Unable to start blueprint container for bundle com.inovelan.cloud.jbpm-impl due to unresolved dependencies [(objectClass=javax.transaction.TransactionManager) <?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"> <service interface="com.inovelan.cloud.jbpm.api.server.JbpmService"> <bean class="com.inovelan.cloud.jbpm.impl.JbpmServiceImpl"> </bean> </service> <reference id="osgiJtaTransactionManager" interface="javax.transaction.TransactionManager"/> <bean class="com.inovelan.cloud.jbpm.impl.Activator"> <property name="transactionManager" ref="osgiJtaTransactionManager" /> <jpa:context unitname="jbpm" property="entityManager"/> <tx:transaction method="*" value="Required"/> </bean> </blueprint> -- View this message in context: http://karaf.922171.n3.nabble.com/get-transaction-manager-tp4034925.html Sent from the Karaf - User mailing list archive at Nabble.com.
