activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RKParkJr <>
Subject Remote connection issues with 5.3.0
Date Thu, 18 Feb 2010 18:49:32 GMT


I have been working on a system using 5.2.0 which is basically laid out as

Machine1(M1): Runs a broker (B1)and some code that pushes messages onto a
Machine2(M2): Runs a broker (B2) that has a bridge from the topic on B1 and
some code
    that reads from the topic and writes some stuff onto a couple of
different queues.
Machine3(M3): Runs some code that reads from the queues in broker B2.

All this was working but I was running into issues where the bridge kept
dropping and reconnecting.

In reading the forums here, it looked like there was a fix for this in
5.3.0, so I upgraded both brokers to that version.

Now I'm having trouble on M3 connecting my code there to broker B2; however,
the code on M2 connects to B2 with no problem as does the code on M1 to B1. 
Similarly, if I try to skip the bridge and connect the code on M2 to B1, I

javax.jms.JMSException: Could not connect to broker URL: tcp://M1:61616.
Reason: Connection refused

I turned up logging to debug on the brokers to see if that revealed anything
but when I connect from a remote machine, nothing gets logged at all.  This
lead me to test the underlying network:

On M1, I did this:

telnet localhost 61616
Connected to localhost.localdomain (
Escape character is '^]'.
�ActiveMQ�    CacheSize
Connection closed by foreign host.

On M2, when I try this:

telnet M1 61616
telnet: connect to address Connection refused
telnet: Unable to connect to remote host: Connection refused

To highlight: no changes in my code, no changes (that I know of) in the
network or DNS (e.g. ping works), no changes in the activemq.xml on either
machine.  The only changes seem to be the 5.3.0 and the jars that came with

Thanks in advance,
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message