Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-901

change to JTA transaction configuration

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • jBPM 3.2.0
    • None
    • Runtime Engine
    • None

      change from CMT to JTA transaction configuration to enable both the EJBs and the webapp to leverage the same JbpmConfiguration.

      For this I created a new persistence service called JtaDbPersistenceService. It verifies that there is an active UserTransaction during the JbpmContext block. If not, one is created and ended in the jbpmContext.close. So now in the EJBs (CMT) there is already a transaction in progress and the JtaDbPersistenceService will not do anything. For the webapp, there will not be a user transaction and hence JtaDbPersistenceService will begin and end the user transaction.

      This approach was needed because hibernate doesn't support beginning and ending of user transaction.

      regards, tom.

            tom.baeyens Tom Baeyens (Inactive)
            tom.baeyens Tom Baeyens (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: