How to consume RabbitMQ messages using a terminal or tool?

60 Views Asked by At

I have the following rabbitmq configuration in a Spring Boot microservice:

application.yml:

rabbitmq:
  addresses: app-test.company.com:5671
  vhost: app-test
  username: user
  password: ******
  queueName: c.app.dev.demo.masterdata100int
  exchangeName: e.app.masterdata100int

I want to check some specific messages on the queue and for this purpose, have tried several tools e.g. Queue Explorer, Qu Desktop and Command Line, but could not connect and consume messages properly. I get the following errors when trying to connect using Queue Explorer:

with TLS option:

Could not load machine overview: The underlying connection was closed: An unexpected error occurred on a send. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.


without TLS option:

Could not load machine overview: The underlying connection was closed: The connection was closed unexpectedly. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.

But the username and password used to connect are correct and I would also try using some other tool in case I miss some configuration settings. Do you have any suggestion to consume a RabbitMQ messages on a remote server?

Note: The commands or the tools should work on Windows as I use Windows 10.

0

There are 0 best solutions below