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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • TBD
    • 2.0.0.Final
    • None
    • None

      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.

              Unassigned Unassigned
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: