JBoss Community

Re: Issue with StatefulKnowledgeSession

created by irshad mansuri in jBPM - View the full discussion

Found the solution.

 

It was my mistake i was not adding the transaction type to the persistence

 

so as i changed my persistence.xml file it worked fine for me.

 

I made the following changes in my persistence.xml file

 

<persistence-unit name="org.jbpm.task" transaction-type="JTA">

 

and also add the transaction manager because trasaction manager is requiered if we are using JTA.

 

<property name="hibernate.transaction.manager_lookup_class"

            value="org.hibernate.transaction.BTMTransactionManagerLookup" />

 

Regards

Irshad

Reply to this message by going to Community

Start a new discussion in jBPM at Community