-
1. Re: pooled actors not persisted
kukeltje Oct 29, 2008 5:17 PM (in response to dmitri.ilyin)please provide a unittest with embedded processdefinition and actionhandlers (assignmenthandlers) that demonstrate the problem. It's hard guessing what you exactely do and takes to much time to try and reproduce
-
2. Re: pooled actors not persisted
kukeltje Oct 29, 2008 5:17 PM (in response to dmitri.ilyin)please provide a unittest with embedded processdefinition and actionhandlers (assignmenthandlers) that demonstrate the problem. It's hard guessing what you exactely do and takes to much time to try and reproduce
-
3. Re: pooled actors not persisted
dmitri.ilyin Oct 30, 2008 6:31 AM (in response to dmitri.ilyin)i could localize the problem but i have no idea how to solve it.
We run JBoss 4.2.3 with JBPM3.2.3. We use EJB3 (JPA) for Entity Beans and JTA Transactions.
So, we have only one Hibernate configuration for hole Enterprise App. Hibernate session-factory is configured for JNDI and we use only this JNDI name for resolving the session factory for JPA "persistence-unit" and for "jBPM configuration". Here our jbpm config:
--------------
<jbpm-context>
</jbpm-context>
--------------
The need this contruction couse we must work with Entity Beans and JBPM in one transaction. We just start JTA transaction and make changes with Entities and JBPM manipulations within it.
It seems that in our configuration jBPM calls hibernate JPA implementation for persisting and JPA can not persisitence by reachability that follows that objects must be persisted explicitly. In case of pooled actors jBPM thinks they will be persisted automaticaly by hibernate but JPA don't do it.
Are there any tricks?
thanks a lot for any help.
Dmitri -
4. Re: pooled actors not persisted
dmitri.ilyin Oct 30, 2008 6:34 AM (in response to dmitri.ilyin)uups.
the jbpm config was removed from post. Here ist :<jbpm-context> <service name="persistence"> <factory> <bean class="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory"> <field name="sessionFactoryJndiName"> <string value="EjfinSessionFactory" /> </field> </bean> </factory> </service> <service name="tx" factory="org.jbpm.tx.TxServiceFactory" /> <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" /> <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" /> <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" /> <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" /> </jbpm-context>