-
1. Re: SLSB + JBPM Rollback
kukeltje Dec 16, 2008 4:04 PM (in response to amiratalbi)I found a subject on JIRA that explains in other way my problem.
It can't since that is solved (unless you use 3.2.2)
https://jira.jboss.org/jira/browse/JBPM-681
You should explain to us how your transactions are configured in SLSB, jBPM etc... otherwise we can't help you -
2. Re: SLSB + JBPM Rollback
amiratalbi Dec 17, 2008 4:30 AM (in response to amiratalbi)Hi kukeltje;
Thanks for your reply.
I'm using JBPM3.2.2 and I checked out project from SVN to change the hbm files us mentionned.
My transaction schema is :
- I'm receinving messages from asynchronous systems via an MDB, the MDB dispatches the message to a session Bean that fire the process instance to move to next state, from that, the process is entering a fork node with 2 transistions. I throwed an exception in one of that transitions. So when the exception is thrown, exception handler is invoqued + a rollback from the lower level of the transaction.
- Process action handlers use a SLSB to do the business logic and this SLSB is injecting other ones
Hope that I was clear in my description
Thkx in advance -
3. Re: SLSB + JBPM Rollback
amiratalbi Dec 17, 2008 4:31 AM (in response to amiratalbi)Sorry, I'm using JBPM 3.2.3
-
4. Re: SLSB + JBPM Rollback
amiratalbi Dec 17, 2008 4:51 AM (in response to amiratalbi)here is my jbpm.cfg.xml config :
<service name="persistence"> <factory> <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory"> <field name="isTransactionEnabled"><false /></field> <field name="isCurrentSessionEnabled"><true /></field> </bean> </factory> </service>
and hibernate.Cfg<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- hibernate dialect --> <!-- JDBC connection properties (end) --> <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property> <!-- DataSource properties (begin) --> <property name="hibernate.connection.datasource">java:/jbpm</property> <!--==== DataSource properties (end) --> <!-- JTA transaction properties (begin) === --> <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property> <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> <!--==== JTA transaction properties (end) --> <!-- CMT transaction properties (begin) === <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property> <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> ==== CMT transaction properties (end) --> <!-- logging properties (begin) === <property name="hibernate.show_sql">false</property> <property name="hibernate.format_sql">true</property> <property name="hibernate.use_sql_comments">true</property> ==== logging properties (end) --> </session-factory> </hibernate-configuration>