Restore userSessionRegistry field in StompSubProtocolHandler

This change ensures that the deprecated UserSessionRegistry is still
used if configured.
This commit is contained in:
Rossen Stoyanchev
2015-05-22 12:31:16 -04:00
parent 3a2da3f701
commit 92bd7bba50
6 changed files with 67 additions and 20 deletions

View File

@@ -384,12 +384,14 @@ public abstract class AbstractMessageBrokerConfiguration implements ApplicationC
}
@Bean
@SuppressWarnings("deprecation")
public SimpUserRegistry userRegistry() {
return (getBrokerRegistry().getUserRegistryBroadcast() != null ?
new MultiServerUserRegistry(createLocalUserRegistry()) : createLocalUserRegistry());
}
/**
* Create the user registry that provides access to the local users.
*/
protected abstract SimpUserRegistry createLocalUserRegistry();
/**