-
1. Re: Jbpm - Transaction to be used
estaub Jun 3, 2008 9:48 AM (in response to jjacobwip)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.
-Ed Staub -
2. Re: Jbpm - Transaction to be used
jjacobwip Jun 3, 2008 11:40 AM (in response to jjacobwip)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.? -
3. Re: Jbpm - Transaction to be used
jjacobwip Jun 3, 2008 2:06 PM (in response to jjacobwip)Could you please tell me when to use DBPersistenceServiceFactory and when to use the default JtaPersistenceServiceFactory?
-
4. Re: Jbpm - Transaction to be used
kukeltje Jun 4, 2008 2:37 AM (in response to jjacobwip)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