activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Hariani <>
Subject Re: what's the meaning of transportConnector and networkConnector ?
Date Thu, 05 Apr 2007 14:27:23 GMT
 From what I understand -

Transport Connector: An end point which clients (or other brokers) can 
connect to. This is what you use as the connection URI in clients.
Network Connector: A remote end point at another broker, which this 
broker will connect to.

You can certainly replace 'localhost' with an IP address in the uri's -- 
for Transport Connectors this IP will have to be that of the host.
e.g. you could have a TransportConnector accepting connections on a 
specific IP address (useful for multi-honed hosts) or one 
TransportConnector for each network interface your host has.
For Network Connector you WILL replace 'localhost' with the remote 
host's name/IP address (unless you are running multiple brokers on the 
same host)

DiscoveryURI - is to allow other brokers to discover this 
TransportConnector using multicast.

hyqgod wrote:
> i 'm a new guy of ActiveMQ, now i'm reading XML deployment descriptor for
> configurating the ActiveMQ Message Broker. when i reached some text below: 
>        <transportConnectors>
>            <transportConnector name="openwire" uri="tcp://localhost:61616"
> discoveryUri="multicast://default"/>
>            <transportConnector name="ssl"     uri="ssl://localhost:61617"/>
>             <transportConnector name="stomp"  
> uri="stomp://localhost:61613"/>
>            <transportConnector name="xmpp"    uri="xmpp://localhost:61222"/>
>        </transportConnectors>
>        <networkConnectors>
>            <networkConnector name="default-nc" uri="multicast://default"/>
>            <networkConnector name="host1 and host2"
> uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
>            </networkConnectors>
>  i can't understand what are the meanings of transportConnector and
> networkConnectors object, i tried to find the explanations from api-docs,but
> got nothing. could anyone can help me to explain these or give me some
> useful links? thanks very much!
> By the way, i doubt whether i can replace the "localhost" with another ip
> address? and what does " discoveryUri" means?

View raw message