Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2052

Conversations are destroyed too early when destroying a session


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha14, 2.3.2.Final
    • 2.2.14.Final
    • None
    • None

      When the session is destroyed (e.g. due to logging out), then its conversations are destroyed right away, in the session.invalidate(); call. According to the spec, this is wrong.
      CDI 1.2 spec 6.7.4. Conversation context lifecycle:

      When the HTTP servlet session is invalidated, all long-running conversation contexts created during the current session are destroyed, after the servlet service() method completes.

      (CDI 2 spec early draft makes the same statement in 19.3.4 Conversation context lifecycle in Java EE.)

            mkouba@redhat.com Martin Kouba
            vsevolodgol Vsevolod Golovanov (Inactive)
            0 Vote for this issue
            4 Start watching this issue