如何在SpringMessaging中配置SimpleBrokerMessageHandler



我想扩展DefaultSubscriptionRegistry的默认行为。我如何配置SimpleBrokerMessageHandler来设置自定义SubscriptionRegistry在XML中?

<websocket:message-broker application-destination-prefix="/inrightsApp">
    <websocket:stomp-endpoint path="/websocket/notify" allowed-origins="*"/>
    <websocket:simple-broker prefix="/websocket/stomp/">
    </websocket:simple-broker>
</websocket:message-broker>

我有如下配置

<websocket:message-broker
    application-destination-prefix="/app">
    <websocket:stomp-endpoint path="/ws">
        <websocket:sockjs />
    </websocket:stomp-endpoint>
    <websocket:simple-broker prefix="/notify" />
</websocket:message-broker>

相关内容

  • 没有找到相关文章

最新更新