Viewing RabbitMQ Client Connection Addresses
When a client is connected to a RabbitMQ instance for message production and consumption, you can view the client connection addresses on the RabbitMQ management UI.
A client's connection addresses can be viewed only when the client is connected to a RabbitMQ instance.
Procedure
- Log in to the RabbitMQ management UI.
- In the navigation pane, choose Connections.
- View client connection addresses, as shown in Figure 1.
A client can function as a producer to create messages and as a consumer to retrieve messages. The producer and consumer IP addresses are the same, as shown in Figure 1, and are difficult to distinguish. To differentiate between producer and consumer IP addresses, you can set the clientProperties parameter on the client. The following is an example:
// Configure client connection parameters. HashMap<String, Object> clientProperties = new HashMap<>(); clientProperties.put("connection_name", "producer"); connectionFactory.setClientProperties(clientProperties); // Create a connection. Connection connection = connectionFactory.newConnection();
After the clientProperties parameter is set, the connection addresses are displayed as shown in Figure 2.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot