用于按条件设置经纪经纪人中继和简单经纪人的XML配置

时间:2019-07-02 10:36:50

标签: spring spring-websocket

我配置了春季网络套接字消息代理:

<websocket:message-broker application-destination-prefix="/portal">
     <websocket:stomp-endpoint path="/notification" allowed-origins="*">
          <websocket:sockjs/>
     </websocket:stomp-endpoint>
     <websocket:stomp-broker-relay prefix="/topic/,/queue/" />
</websocket:message-broker>

我想配置另一个网络套接字消息代理:

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

如何通过$ {simpleBorkerEnabled}之类的条件启用或禁用它?

0 个答案:

没有答案