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

Clarify contextual reference validity to a bean with a normal scope in Java SE

    XMLWordPrintable

    Details

    • Type: Clarification
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0 .Final
    • Component/s: None
    • Labels:
      None

      Description

      In Java SE, a user might be tempted to share a contextual reference for a normal scoped bean (client proxy) between multiple "deployments" of a single application, e.g.:

      1. start CDI container
      2. get a reference
      3. stop CDI container
      4. start CDI container again and try to use the stored reference.

      I believe such a reference should not be valid after an application stopped (contexts are destroyed, etc.). Right now, it seems to be undefined.

      See also WELD-2190.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mkouba Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: