此内容没有您所选择的语言版本。
Chapter 10. Discovering Brokers
Abstract
10.1. Discovery Agents
Abstract
10.1.1. Introduction to Discovery Agents
What is a discovery agent?
Discovery mechanisms
transportConnector
element as shown in Example 10.1, “Enabling a Discovery Agent on a Broker”.
Example 10.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
10.1.2. Fuse Fabric Discovery Agent
Abstract
Overview
URI
Example 10.2. Fuse Fabric Discovery Agent URI Format
fabric://GID
Configuring a broker
Configuring a client
Example 10.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.
10.1.3. Static Discovery Agent
Abstract
Overview
Using the agent
Example 10.4. Static Discovery Agent URI Format
static://(URI1,URI2,URI3,...)
Example
Example 10.5. Discovery URI using the Static Discovery Agent
discovery:(static://(tcp://localhost:61716,tcp://localhost:61816))
10.1.4. Multicast Discovery Agent
Abstract
Overview
URI
Example 10.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 10.7, “Enabling a Multicast Discovery Agent on a Broker”.
Example 10.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 10.8. Client Connection URL using Multicast Discovery
discovery:(multicast://default)
default
multicast group and generate a list of brokers to which it can connect.
10.1.5. Zeroconf Discovery Agent
Abstract
Overview
URI
Example 10.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 10.10, “Enabling a Multicast Discovery Agent on a Broker”.
Example 10.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 10.11. Client Connection URL using Zeroconf Discovery
discovery:(zeroconf://NEGroup)
NEGroup
multicast group and generate a list of brokers to which it can connect.