Spring 4 WebSocket Remote Broker configuration

Viewed 10255

I managed to create simple Websocket application with Spring 4 and Stomp. See my last question here Then I tried to use remote message broker(ActiveMQ). I just started the broker and changed

registry.enableSimpleBroker("/topic");

to

registry.enableStompBrokerRelay("/topic");

and it worked.

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?

1 Answers
Related