Can a pure master/slave cluster be configured using a network connector?

Solution Verified - Updated -

Environment

  • Fuse Message Broker all versions

Issue

Can a pure master/slave cluster be configured using a network connector?

Resolution

You do not use a network connector when configuring a pure master/slave cluster. You configure a slave in one of two ways:

1) Using masterConnectorURI and shutdownOnMasterFailure attributes of the amq:broker element:

<beans xmlns:amq="http://activemq.org/config/1.0">
  ...
  <broker depends-on="jmxServer" masterConnectorURI="tcp://masterhost:62001" shutdownOnMasterFailure="false">
    ...
  </amq:broker>
</beans>

2) Using the masterConnector element:

<beans xmlns:amq="http://activemq.org/config/1.0">
  ...
  <broker depends-on="jmxServer" shutdownOnMasterFailure="false" >
   ...    
   <masterConnector remoteURI= "tcp://localhost:62001" userName="James" password="Cheese" />
  ...
  </broker>
</beans>

Please also notice that ActiceMQ also provides shared filesystem master/slave and JDBC master/slave.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

2 Comments

fact:

All Supported Operating Systems

fact:

Fuse Message Broker