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

@ApplicationScoped does not work when used with @ServerEndpoint

XMLWordPrintable

      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.

              mmarusic Marek Marusic (Inactive)
              mmarusic Marek Marusic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: