RabbitMQ - Connection timed out

33 views
Skip to first unread message

letu...@gmail.com

unread,
Mar 10, 2014, 11:05:42 AM3/10/14
to appfog...@googlegroups.com
Hi,

I try to connect to the RabbitMQ Service with my Java-Application hosted at the AppFog HP-Infrastructure.
When I try to create a new connection I get the following error message:

java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at com.rabbitmq.client.ConnectionFactory.createFrameHandler(ConnectionFactory.java:4
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:504)
        at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:533)

I am using the URL from the VCAP_SERVICES.

Thgis is how I create my connection
m_factory = new ConnectionFactory();
m_factory.setUri(m_uri);
m_connection = m_factory.newConnection();

Any suggestions?

Best regards,
Thomas
Reply all
Reply to author
Forward
0 new messages