Consultor Eletrônico



Kbase 22125: SonicMQ: Loadbalancing connections through a firewall
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/20/2003
SUMMARY:
This applies to SonicMQ version 4.x and 3.x.

Without the proper configuration, if a client connecting through a firewall is redirected to another broker, the client will receive a DNS error: Java.net.UnknownHostException: <broker machine name>:<broker port>.


EXPLANATION:

The broker must be configured to use IP addresses on the redirect.

SOLUTION:

All brokers in the cluster must have their acceptors configured to use IP_OR_HOST, and the IP address should be specified. The acceptor information in the broker.ini file is how the brokers in the cluster communicate with each other. If the IP_OR_HOST is absent, the value defaults to the machine name. In the case of a client connecting through a firewall, the machine name returns an UnknownHostException, since that client doesn't have access to the DNS information on the other side of the firewall.

A sample configuration would look like this:

NUM_ACCEPTORS=1
IP_OR_HOST_1=<my IP address>
PORT_NUMBER_1=2506
SOCKET_TYPE_1=tcp

References to Written Documentation:

Configuration and Admin guide, Chapter 7: Protocols, Connections and Acceptors.