are you using drools with spring & hibernate? without jta transaction & bitronix , instead trying to access drools using spring jpa transaction manager? if so, did you ever come across the attached error when calling statefulsession.startProcess() on drools within your service method enclosed in aop transaction ?
java.lang.IllegalStateException: No value for key [org.springframework.orm.jpa.localcontainerentitymanagerfactoryb...@af198c] bound to thread [http-8080-1] org.springframework.transaction.support.TransactionSynchronizationManager.unbindResource(TransactionSynchronizationManager.java:199) org.springframework.orm.jpa.JpaTransactionManager.doCleanupAfterCompletion(JpaTransactionManager.java:525) org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:1011) In my case, everything works fine, service method being invoked with aop wrappped txn, drools process is being triggered, persisted to the db using hibernate, but upon exiting the method, i got the exception while after commit transaction..... -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Javax-persistence-EntityNotFoundException-No-Task-with-ID-2-was-found-tp1453844p1488184.html Sent from the Drools - User mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users