Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-6751

In Glassfish, a TransactionListener is invoked after Transaction is committed

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.3.7, 7.4.8
    • engine
    • None
    • Glassfish

      Given:

      • an async ServiceTask which is implemented as JavaDelegate
      • inside the Delegate, a TransactionListener is registered for state Committing which throws an exception

      When:

      • the job executor executes the delegate

      Then:

      • the TransactionListener is invoked and throw an exception
      • but the job is marked as successful and the process continues

      Hint:

      • it seems that the transaction is already committed when the TransactionListener is invoked (job entity is already deleted)
      • expected behavior in camunda > 7.4
      • see engine integration test AsyncJobExecutionTransactionListenerTest

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              philipp.ossler Philipp Ossler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: