zyro23 / grails-spring-websocket

93 stars 28 forks source link

How to use with an external broker like ActiveMQ #62

Closed ganeshkantu closed 6 years ago

ganeshkantu commented 6 years ago

I have been successfully using this plugin with the embedded broker. Now want to migrate to a more distributed structure - very confused as to how I would setup using an ActiveMQ broker. Any pointers?

zyro23 commented 6 years ago

readme: https://github.com/zyro23/grails-spring-websocket#full-featured-broker

spring docs:

activemq stomp transport: http://activemq.apache.org/stomp.html

good websocket sample app: https://github.com/rstoyanchev/spring-websocket-portfolio

You may also need to configure additional STOMP broker relay properties such as relayHost, relayPort, systemLogin, systemPassword, depending on your message broker. The default settings should work for RabbitMQ and ActiveMQ.