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

Expand @RequestScoped and @SessionScoped to account for WebSocket

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • None
    • None
    • None
    • None

    Description

      We've been testing injection into a WebSocket endpoint.

      @ReqestScoped objects are usable within the @OnOpen callback. This is because this object is executed within a valid request scope.

      However if you try to use the injected object from within the @OnMessage callback you get a Weld error:
      SEVERE: org.jboss.weld.context.ContextNotActiveException:
      WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped

      Can the definition of when @RequestScoped is active be expanded to include a WebSocket @OnMessage callback?

      Attachments

        Issue Links

          Activity

            People

              asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
              jjsnyder Joseph Snyder (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: