[rabbitmq-discuss] How to identify connection?

Matthias Radestock matthias at rabbitmq.com
Thu Jul 18 16:09:34 BST 2013


On 18/07/13 15:40, Наиль Салихов wrote:
> Sorry for delayed response.
>
> There is situation, where from one IP can be more than one connections.
> I have two services in one server , which work with RabbitMQ. Management
> plugin shows me their names like PeerHost:PeerPort, but i want be able
> to set name, or description from code.
>
> I think it's very useful function.

Clients can supply arbitrary properties when starting a connection. See 
http://www.rabbitmq.com/amqp-0-9-1-reference.html#connection.start-ok.client-properties. 
These properties are shown in rabbitmqctl and the management UI.

The means by which these properties can be supplied by application code 
depends on the client library. For example, for the Java client we have 
http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.1.3/rabbitmq-java-client-javadoc-3.1.3/com/rabbitmq/client/ConnectionFactory.html#setClientProperties(java.util.Map)

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list