Конфигурация XML для stomp-broker-relay и simple-broker по условию - PullRequest
0 голосов
/ 02 июля 2019

Я настраиваю брокер сообщений web-сокета Spring:

<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}?

...