LibraryToggle FramesPrintFeedback

There are two alternative approaches to configuring the slave. Example 4.3 shows how to configure the slave using the masterConnector element, which enables you to specify username and password credentials for the connection.


The masterConnector element supports the following attributes:

remoteURI

Specifies the address of the master's transport connector port.

userName

Username for connecting to the master (if authentication is enabled).

password

Password for connecting to the master (if authentication is enabled).

Example 4.4 shows the alternative approach to configuration, by setting attributes on the broker element. This approach does not support setting credentials, however.


The masterConnector element supports the following attributes:

masterConnectorURI

Specifies the address of the master's transport connector port.

shutdownOnMasterFailure

If true, the slave shuts down when the master fails; otherwise, the slave takes over as the new master. Default is false.

The slave ensures that there is a separate copy of each message and acknowledgment on another machine, which can protect against catastrophic hardware failure. If the master fails, you might want the slave to shut down as well, if protection against data loss is your main priority. You can then manually duplicate the slave's copy of the data before restoring the system.

Comments powered by Disqus