[jboss-jira] [JBoss JIRA] (WFLY-11672) @ApplicationScoped does not work when used with @ServerEndpoint

Marek Marusic (Jira) issues at jboss.org
Tue Feb 5 06:00:01 EST 2019


Marek Marusic created WFLY-11672:
------------------------------------

             Summary: @ApplicationScoped does not work when used with @ServerEndpoint
                 Key: WFLY-11672
                 URL: https://issues.jboss.org/browse/WFLY-11672
             Project: WildFly
          Issue Type: Bug
          Components: CDI / Weld, Web Sockets
    Affects Versions: 15.0.1.Final
            Reporter: Marek Marusic
            Assignee: Matej Novotny


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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list