-
1. Need help with EJB3 and jBPM 3.1 transactions on JBoss 4.0.4
j.hedin Apr 11, 2006 7:38 PM (in response to j.hedin)I have the same result with JBoss 4.0.4.CR2
-
2. Re: Need help with EJB3 and jBPM 3.1 transactions on JBoss 4
koen.aers Apr 12, 2006 2:43 AM (in response to j.hedin)Johan,
We did not yet port/test jBPM on the JBoss 4.0.4 branch, so there are probably some incompatibilities between jars. Are you sure you use the same jars for jBPM as for your JBoss instance?
Regards,
Koen -
3. Re: Need help with EJB3 and jBPM 3.1 transactions on JBoss 4
j.hedin Apr 12, 2006 3:35 AM (in response to j.hedin)The only jars added to JBoss for jBPM are jbmp-3.1.jar and jbpm-3.1-identity.jar. Hibernate is read from JBoss 4.0.4.CR2 built in jar. JBPM works find with JMS, but having SLSB -> token.signal() -> SLSB gives the error. Will it help to rebuild jBPM from the source?
-
4. Re: Need help with EJB3 and jBPM 3.1 transactions on JBoss 4
koen.aers Apr 12, 2006 6:10 AM (in response to j.hedin)I suspect that is the problem yes... but I am not sure of course.
Regards,
Koen -
5. Re: Need help with EJB3 and jBPM 3.1 transactions on JBoss 4
j.hedin Apr 12, 2006 7:42 AM (in response to j.hedin)I have checked the .jars. They only contains org.jbpm classes. Will a rebuild help then?
Should I have a reference to the EJB Hibernate Session factory for the jbpm-context?<jbpm-context> <service name="persistence"> <factory> <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory"> <field name="isTransactionEnabled"> <boolean value="false"/> </field> </bean> </factory> </service> <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>
-
6. Re: Need help with EJB3 and jBPM 3.1 transactions on JBoss 4
koen.aers Apr 12, 2006 7:47 AM (in response to j.hedin)A rebuild will probably help. The problem is that there might be binary incompatibilities with the libraries of the JBoss AS 4.0.4 branch.
Regards,
Koen -
7. Re: Need help with EJB3 and jBPM 3.1 transactions on JBoss 4
j.hedin Apr 12, 2006 8:08 AM (in response to j.hedin)Found it! jBPM worked all the time.
The second SLSB did throw a org.hibernate.HibernateException. Since that did mark the transaction for rollback org.jbpm.graph.def.Node.exceptionHandlers could not be executed and gave the org.jbpm.graph.def.DelegationException exception caused by the terminated Hibernate session instead of the exception thrown by the SLSB.
Not a bug, but a would suggest an enhancement to jBPM that shows the original exception as well in case that org.jbpm.graph.def.Node.exceptionHandlers could no be run.
Thanks for the quick help and keep up the good work!
Best regards
Johan Hedin