Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-722

backward incompatible change for BEFORE_COMPLETION

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 2.0 .Final
    • Java EE integration
    • None

      The split from the original documentation to a SE+EE doc did introduce a backward incompatibility to CDI-1.2, CDI-1.1 and CDI-1.0.

      The CDI-2.0 spec states in 24.1.2:

      24.1.2. Observer method invocation context in Java EE
      When Running in Java EE, the container must extend the rules defined in Observer method invocation context and must also ensure that all kinds of observers are called in the same client security context as the invocation of Event.fire() or Event.fireAsync() or BeanManager.fireEvent().
      

      Whereas older CDI specs are defined as:

      If the observer method is a before completion transactional observer method, it is called within the context of the transaction that is about to complete and with the same client security context and lifecycle contexts.
      

      With other words, in the older specs the security context was always the same context of the operation which calls the final commit operation.
      The change in CDI-2.0 is thus a backward incompatible wording.

              Unassigned Unassigned
              struberg Mark Struberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: