Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8954

Wildfly 10 with eclipselink Onscucess observer gets stale entity

    Details

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

      Description

      Hi,

      In widlfly there seems to be an important issue concerning CDI events and observing these events during onsuccess. At least while using eclipselink.

      When using wildfly 10.0.0.Final together with eclipselink, if an application modifies an entity A, fires an event stating entity A has been modified, and an observer consumes this event during transaction success.

      Then the observer will be working with stale entities that do not reflect the modifications done to the entity.

      A sample application for this issue is available in:
      https://github.com/99sono/wildfly10-observe-on-success-stale-entity

      The widlfly configuration xml for the sample application, is available in the application itself, as can be seen in the readme documentation.

      Many thanks for taking a look.

      Kindest regards.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                smarlow Scott Marlow
                Reporter:
                nuno.godinhomatos Nuno Godinho de Matos
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: