Chapter 8. Discovering Brokers
Abstract
8.1. Discovery Agents
Abstract
8.1.1. Introduction to Discovery Agents
What is a discovery agent?
Discovery mechanisms
transportConnector
element as shown in Example 8.1, “Enabling a Discovery Agent on a Broker”.
Example 8.1. Enabling a Discovery Agent on a Broker
<transportConnectors> <transportConnector name="openwire" uri="tcp://localhost:61716" discoveryUri="multicast://default" /> </transportConnectors>
discoveryUri
attribute on the transportConnector
element is initialized to multicast://default
.
Discovery agent types
8.1.2. Fuse Fabric Discovery Agent
Abstract
Overview
URI
Example 8.2. Fuse Fabric Discovery Agent URI Format
fabric://GID
Configuring a broker
Configuring a client
Example 8.3. Client Connection URL using Fuse Fabric Discovery
discovery:(fabric://nwBrokers)
nwBrokers
broker group and generate a list of brokers to which it can connect.
8.1.3. Static Discovery Agent
Abstract
Overview
Using the agent
Example 8.4. Static Discovery Agent URI Format
static://(URI1,URI2,URI3,...)
Example
Example 8.5. Discovery URI using the Static Discovery Agent
discovery:(static://(tcp://localhost:61716,tcp://localhost:61816))
8.1.4. Multicast Discovery Agent
Abstract
Overview
URI
Example 8.6. Multicast Discovery Agent URI Format
multicast://GroupID
Configuring a broker
transportConnector
element's discoveryUri
attribute to a mulitcast discovery agent URI as shown in Example 8.7, “Enabling a Multicast Discovery Agent on a Broker”.
Example 8.7. Enabling a Multicast Discovery Agent on a Broker
<transportConnectors> <transportConnector name="openwire" uri="tcp://localhost:61716" discoveryUri="multicast://default" /> </transportConnectors>
default
.
Configuring a client
Example 8.8. Client Connection URL using Multicast Discovery
discovery:(multicast://default)
default
multicast group and generate a list of brokers to which it can connect.
8.1.5. Zeroconf Discovery Agent
Abstract
Overview
URI
Example 8.9. Zeroconf Discovery Agent URI Format
zeroconf://GroupID
Configuring a broker
transportConnector
element's discoveryUri
attribute to a mulitcast discovery agent URI as shown in Example 8.10, “Enabling a Multicast Discovery Agent on a Broker”.
Example 8.10. Enabling a Multicast Discovery Agent on a Broker
<transportConnectors> <transportConnector name="openwire" uri="tcp://localhost:61716" discoveryUri="multicast://NEGroup" /> </transportConnectors>
NEGroup
.
Configuring a client
Example 8.11. Client Connection URL using Zeroconf Discovery
discovery:(zeroconf://NEGroup)
NEGroup
multicast group and generate a list of brokers to which it can connect.