title: Spring 4 WebSocket Remote Broker configuration
body: <p>I managed to create simple Websocket application with Spring 4 and Stomp. See my last question <a href="https://stackoverflow.com/questions/20740956/spring-4-websocket-app">here</a>
  Then I tried to use remote message broker(ActiveMQ). I just started the broker and changed </p>
  
  <pre><code>registry.enableSimpleBroker("/topic");
  </code></pre>
  
  <p>to</p>
  
  <pre><code>registry.enableStompBrokerRelay("/topic");
  </code></pre>
  
  <p>and it worked. </p>
  
  <p>The question is how the broker is configured? I understand that in this case the application automagicaly finds the broker on localhost:defaultport, bu what if I need to point the app to some other broker on other machine?</p>