I have a RabbitMQ Server running on Server1
RabbitMQ Client on Server2
On Server 2, the following command throws an error:
rabbitmq-java-client-bin-3.6.1/runjava.sh com.rabbitmq.examples.PerfTest --uri "amqp://username:password@IPOfServer1:15672:/%2f" --consumers 1 --producers 1
Where username and password represent the user I have created for interacting with the server. "/" represents my vhost.
15672: RabbitMQ server port.
The error is as follows:
starting consumer #0
Main thread caught exception: java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutException
at com.rabbitmq.utility.BlockingCell.get(BlockingCell.java:77)
at com.rabbitmq.utility.BlockingCell.uninterruptibleGet(BlockingCell.java:111)
at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:37)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:367)
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:293)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:716)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:760)
at com.rabbitmq.examples.perf.MulticastSet.run(MulticastSet.java:56)
at com.rabbitmq.examples.PerfTest.main(PerfTest.java:117)
I am not sure why it is not able to connect to the server.
I have tried a set up without the perftest tool and it works fine.
Ideally I would like to have the following setup:
Server1 : Rabbitmq server
Server 2: Rabbitmq client (Producer)
Server 3: Rabbitmq client (Subscriber).
Currently I am trying out with only 1 client, which is unable to connect to the server.
Any thoughts ?
Thanks,
S