Hi,

I have an ActiveMQ 5.5.0 broker running on Windows 2008 with
transportConnector name="openwire" uri="tcp://host.domain:61616".  I need to
publish messages to this broker from a standalone java client on the other
side of a firewall.  Port 61616 for the broker host has been opened in the
firewall.  When I try to publish the test message thru the firewall, the
application seems to hang and then times out:

Debug: [Failed to send message with error 'Could not connect to broker URL:
tcp://doedvlp.greenops.com:61616. Reason: java.net.SocketTimeoutException:
connect timed out'.]
javax.jms.JMSException: Could not connect to broker URL:
tcp://doedvlp.greenops.com:61616. Reason: java.net.SocketTimeoutException:
connect timed out
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
        at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:185)
        at
com.greenheck.doe.testing.ActiveMqTestSend.<init>(ActiveMqTestSend.java:22)
        at
com.greenheck.doe.testing.ActiveMqTestSend.main(ActiveMqTestSend.java:10)
Caused by: java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:484)
        at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:447)
        at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
        at
org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:126)
        at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
        at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
        at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
        at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
 
The firewall monitor does not show any traffic being blocked and the test
application works when it is on the same side of the firewall as the broker.

Can any one give many any pointers on how to get this to work thru the
firewall or point me to some documentation on how to do it?

Dave

--
View this message in context: 
http://activemq.2283324.n4.nabble.com/How-to-connect-ActiveMQ-client-to-a-Broker-thru-a-firewall-tp3748504p3748504.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to