-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 15.0.1.Final
-
Fix Version/s: 17.0.0.Alpha1, 17.0.0.Final
-
Component/s: CDI / Weld, Web Sockets
-
Labels:None
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.