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

@ApplicationScoped does not work when used with @ServerEndpoint

    Details

      Description

      When the @ApplicationScoped annotation is used in combination with @ServerEndpoint the class is instantiated on every new connection instead of being instantiated once for the whole application.

      The expected behaviour:
      There should be only one instance of the class which is annotated with @ApplicationScoped and @ServerEndpoint annotations.

      I have created a reproducer and added it as attachment.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmarusic Marek Marusic
                Reporter:
                mmarusic Marek Marusic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: