Kbase 20759: SonicMQ: Connection refused: localhost :2506 on Linux
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  30/03/2001 |
|
SUMMARY:
This solution applies to Linux Versions RedHat 6.2 and RedHat 7.0. It discusses the following error you can receive with the SonicMQ 3.0 Developer Edition on Linux if you try to connect to the same Linux machine that started the SonicMQ broker:
error: Cannot connect to Broker - localhost:2506
javax.jms.JMSException: java.net.ConnectException:
Connection refused: localhost:2506
EXPLANATION:
The pre condition for connecting to a SonicMQ broker on Linux is that the broker is started successfully. You can verify the startup by looking for a line on the output window similar to:
SonicMQ Broker started, now accepting tcp connections
on port 2506 ...
after you start the SonicMQ broker with the startbr.sh script.
The limitation of the Developer Edition is that only local connects are allowed, even though the connection goes over the network adapter. This is why a missing localhost entry within the hosts file (etc/hosts) causes the SonicMQ broker not to find the localhost IP Address and to be not able to listen for incoming connection requests.
This is a known issue if you use Java on Linux.
SOLUTION:
If TCP/IP is configured correctly on the Linux machine as well as are the entries for the localhost and the IP address in the file /etc/hosts,
for example:
127.0.0.1 localhost loopback loghost
123.123.123.123 tslinx test.test.domain
you must reinitialize the network settings or restart so that the machine recognizes the new configuration for starting the SonicMQ broker.
References To Written Documentation:
Progress Knowledge Base Solution 20316, "Progress Explorer Fails to Connect to Linux AdminServer".