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