5.3.2 : Small question on transport binding

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

5.3.2 : Small question on transport binding

Eric-AWL
Hi

Would someone mind completing this mapping or correcting my mistakes please ?

tcp://0.0.0.0:port                           binding on all interfaces   :port
tcp://127.0.0.1:port                        binding on localhost only => not visible for the rest of the network
tcp://aa.bb.cc.dd:port                     binding on single interface aa.bb.cc.dd:port

tcp://"name":port?useLocalHost=true
             if "name" = "localhost"                                               binding on localhost only => not visible for the rest of the network
             if "name" = "other"                                                   binding on an interface which listens on an IP address that is the same as the name resolution of "other"
            if "name" = InetAddress.getLocalHost().gethostName()   idem "localhost"
   

tcp://"name":port?useLocalHost=false
             if "name" = "localhost"                                               binding on localhost only => not visible for the rest of the network
             if "name" = "other"                                                   binding on an interface which listens on an IP address that is the same as the name resolution of "other"
             if "name" = InetAddress.getLocalHost().gethostName()  idem "other"

Is this correct ?

Eric-AWL
Reply | Threaded
Open this post in threaded view
|

Re: 5.3.2 : Small question on transport binding

clark
Eric,
On startup, the Broker does a reverse DNS lookup which is unpredictable across os versions especially with multihomed machines. Keep this in mind  especially when making the assumption:  

"if "name" = "localhost" binding on localhost only => not visible for the rest of the network"


-clark

www.ttmsolutions.com
ActiveMQ reference guide at
http://bit.ly/AMQRefGuide


Eric-AWL wrote
Hi

Would someone mind completing this mapping or correcting my mistakes please ?

tcp://0.0.0.0:port                           binding on all interfaces   :port
tcp://127.0.0.1:port                        binding on localhost only => not visible for the rest of the network
tcp://aa.bb.cc.dd:port                     binding on single interface aa.bb.cc.dd:port

tcp://"name":port?useLocalHost=true
             if "name" = "localhost"                                               binding on localhost only => not visible for the rest of the network
             if "name" = "other"                                                   binding on an interface which listens on an IP address that is the same as the name resolution of "other"
            if "name" = InetAddress.getLocalHost().gethostName()   idem "localhost"
   

tcp://"name":port?useLocalHost=false
             if "name" = "localhost"                                               binding on localhost only => not visible for the rest of the network
             if "name" = "other"                                                   binding on an interface which listens on an IP address that is the same as the name resolution of "other"
             if "name" = InetAddress.getLocalHost().gethostName()  idem "other"

Is this correct ?

Eric-AWL