New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setter for order for DefaultSimpUserRegistry [SPR-17023] #21561
Comments
Rossen Stoyanchev commented We could add a |
Filip Hrisafov commented Having a |
Rossen Stoyanchev commented I've added |
Filip Hrisafov commented Thanks a lot Rossen. I think that this should be enough. It is a bit "difficult" to set the order (would need to either do provide our own We are using Spring Boot, so I will try to do some more general auto configuration that can be used perhaps. Do you know if there are some plans to have Boot auto configurations for this components from Spring? |
Rossen Stoyanchev commented Okay, in that case I can expose something on |
Rossen Stoyanchev commented Filip Hrisafov regarding your question about Boot plans for auto config, you might want to add a comment under spring-projects/spring-boot#65. It was closed recently due to lack of activity but nevertheless it's the best place to leave some record. |
Filip Hrisafov commented Thanks a lot for everything Rossen. I just created #21679 for the setter. I will comment on the Boot issue as well. |
Filip Hrisafov opened SPR-17023 and commented
Currently the
DefaultSimpUserRegistry
andMultiServerUserRegistry
are using theOrdered.LOWEST_PRECEDENCE
.We have listeners that are listening on
SessionConnectedEvent
and in some of our logic we are checking theSimpUserRegistry
. However, if our listener is triggered before the registry ones then there is no user in the registry (if this is the first connection).I currently managed to register my listener after the registry ones. However, I am not sure that this is deterministic enough. I just annotated it with
@Order
Affects: 5.0.7
Issue Links:
The text was updated successfully, but these errors were encountered: