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

Clarify behaviour of @ApplicationScoped in EARs

    XMLWordPrintable

    Details

      Description

      Since @ApplicationScoped currently is defined in 6.5.2 as to be 'like in the Servlet specification' this means that you will get a new instance for every WebApplication (WAR file).

      There is currently no specified CDI scope for providing a single shared instance for a whole EAR.
      We could (ab-)use @Singleton for that, but this is currently not well defined at all.

      Alternatively we could introduce an own new annotation like @EnterpriseScoped or likes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              struberg Mark Struberg
              Votes:
              2 Vote for this issue
              Watchers:
              23 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: