[
https://issues.jboss.org/browse/WFLY-11672?page=com.atlassian.jira.plugin...
]
Marek Marusic updated WFLY-11672:
---------------------------------
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.
was:
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.
@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
Priority: Major
Attachments: applicationScopedServerEndpoint.zip
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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)