Skip to content

@ApplicationScoped does not work in combination with @ServerEndpoint (quick start using-websockets) #721

@MMarus

Description

@MMarus

I've tried the quick start "using-websockets" and it looks like a new instance of ChatSocket class is created for every new session even though it has the @ApplicationScoped annotation. The problem is combination of the @serverendpoint and @ApplicationScoped annotations. When they are combined a new instance is created because of the @serverendpoint even though there is the @ApplicationScoped annotation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions