Skip to content

Using websocket scope in application event listener [SPR-12172] #16786

@spring-projects-issues

Description

@spring-projects-issues

Alex opened SPR-12172 and commented

I'm using a session bean with websocket scope and it works fine, but the bean is not available while handling the websocket application events like SessionConnectedEvent and SessionDisconnectEvent (if I try to access the bean I've an error telling me the scope is not available).

That is a problem because I'm unable to initialize the session bean during the connection phase, that could be very useful for my application.

I don't know if this can be fixed, if not a workaround will be very welcome :)


Affects: 4.1 GA

Referenced from: commits a99ef6d

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions