Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-587

TransactionalObserverRollbackTest wrongly assumes that beforeCompletion synchronization callback is called for rollbacked tx

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.Final
    • Fix Version/s: TBD
    • Component/s: None
    • Labels:
      None

      Description

      JTA spec states in 3.3.2 Transaction Synchronization:

      The Synchronization.beforeCompletion method is called prior to the
      start of the two-phase transaction commit process. This call is executed with
      the transaction context of the transaction that is being committed.

      I guess the event is fired too eagerly in the test because I think the synchronization callback is called once the method (EjbTestBean#initTransaction in this case) was executed.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  tremes Tomas Remes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated: