ActiveMQ
The recommended setup for clustered ActiveMQ nodes is a Network of Brokers.
For this, an additional networkConnector
needs to be added to the activemq.xml
configuration file
lying in the conf
directory of ActiveMQ:
<broker brokerName="receiver" persistent="false" useJmx="false">
<networkConnectors>
<networkConnector uri="static:(tcp://node2:61616,tcp://node3:61616)"/> <!-- addresses of all other nodes -->
</networkConnectors>
...
</broker>
In addition, modify the Flowable Server properties to add the ActiveMQ nodes for failover purposes:
flowable.websocket.stomp-broker-addresses=node1:61612,node2:61613,node3:61613
spring.activemq.broker-url=failover:(tcp://node1:61616,tcp://node2:61616,tcp://node3:61616)