Support for multiple brokers
To allow the broker to accept connections from other brokers you can define and configure broker connections using the trc_broker.properties file.
About this task
Note:
To configure broker connections complete the following
steps.- Do not prefix with # or ! as these are reserved for comments in properties files.
- If you want to include spaces in the prefix you have to escape
them with \
for example : my connection.ConnectionType
should be defined as my\connection.ConnectionType
Procedure
- Configure the following parameters within the trc_broker.properties file
of the broker that will connect to connect to another broker.
- ConnectionType
- Defines the type of connection. Should be set to Broker
For example: my\connection.ConnectionType=Broker
- DestinationAddress
- Defines the hostname of the broker that the connection is being
made to. The broker with this address needs to be configured to accept
inbound connections. This parameter is required.
For example: my\connection.DestinationAddress=mybroker.ibm.com
Note: Set the AllowBrokers parameter in the configuration file of the broker that this connection is being made to. Set this parameters to allow other brokers to connect to it. For more details, see Allowing endpoints to connect to a broker. - DestinationPort
- Defines the TCP port of the broker to connect to. This parameter is required.
- PublicBrokerURL
- Determines the public address and port for the broker you are
currently configuring. When there are multiple brokers configured,
if the target connects to this broker and the controller connects
to a different broker, the property is used to identify this broker
so that the controller can connect to it and then successfully reach
the target. This property should be set to hostname:port where hostname is
the hostname of this broker machine and port is the port that
this broker is listening for connections on. Default value is <blank.>
. Note: The hostname used here should be the same as the hostname used when registering the broker on the Remote Control server.
- Save the file.