Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17023

Add setter for order for DefaultSimpUserRegistry

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.0.8, 5.1 RC1
    • Component/s: Messaging:WebSocket
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Currently the DefaultSimpUserRegistry and MultiServerUserRegistry are using the Ordered.LOWEST_PRECEDENCE.

      We have listeners that are listening on SessionConnectedEvent and in some of our logic we are checking the SimpUserRegistry. 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              filiphr Filip Hrisafov
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 31 weeks ago