Probably CMT. The question to ask is whether there is an outer contextual transaction that you want the engine to participate in.
Usually, there's an MDB driving at least some activity, and usually you want the MDB to roll back and retry on an engine exception. But your situation may be different.
Thank you...my exact scenario is as below...
I have a J2EE application which is already using Hibernate (running on Jboss)....My jbpm process is to be plugged into this existing application. I am planning to create my jbpm databases on a different schema and the existing J2EE application is using another schema...
Can I use the same Hibernate session of the J2EE application for Jbpm? (session injection?)...What kind of a transaction would be preferable in this scenario.?
Could you please tell me when to use DBPersistenceServiceFactory and when to use the default JtaPersistenceServiceFactory?
please read the docs on db/persistency/transactions a little. There is info on injecting sessions etc. Best is if you read the docs from cvs since there have been some updates lately in that area