1 Reply Latest reply on Mar 20, 2012 1:05 PM by nizzy

    Remote lookup within JBPM Action Handler does not join existing transaction

    nizzy

      Hi All,

       

      I'm seeing some unexpected behaviour in my application;

       

      ENV

      --

      JBoss 4.2.3

      JBPM 3.2.3

      Java6

      Windows7

       

      The issue is manifesting itself in a StaleObjectException, when doing an RMI lookup of a remote session bean from within a JBPM Action Handler, the transaction created in call to the session bean does not join the existing transaction. I understand fully the cause of the exception, however I'm currently unaware of how to fix it.

       

      I have configured JBPM to use JTATransactionFactory

       

      <!-- 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>

      <property name="jta.UserTransaction">UserTransaction</property>

      <!-- JTA transaction properties (end) -->

       

      Any insight would be most welcome

       

      Regards Alan.