[rabbitmq-discuss] Who conusmed messages - Can it be done through trace?

Srinath Sridharan -X (srinatsr - ZENSAR TECHNOLOGIES INC at Cisco) srinatsr at cisco.com
Thu May 8 21:52:06 BST 2014


Anyone please help

Regards ...*
Srinath

From: rabbitmq-discuss [mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of Srinath Sridharan -X (srinatsr - ZENSAR TECHNOLOGIES INC at Cisco)
Sent: Thursday, May 08, 2014 12:55 PM
To: rabbitmq-discuss at lists.rabbitmq.com
Subject: [rabbitmq-discuss] Who conusmed messages - Can it be done through trace?

Hello All,

I have bind my queue with trace and log exchange,  I need to know which node actually consumed the message.

How to find out,

@Override
       public void onMessage(Message message, Channel channel) throws Exception {

             QueueMonitorRespone queueMonitorRespone = new QueueMonitorRespone();
              queueMonitorRespone.setExchange(message.getMessageProperties().getReceivedExchange());
              queueMonitorRespone.setRoutingKey(message.getMessageProperties().getReceivedRoutingKey());
              queueMonitorRespone.setDeliveryMode(message.getMessageProperties().getDeliveryMode().name());
              queueMonitorRespone.setTimestamp(message.getMessageProperties().getTimestamp());
             queueMonitorRespone.setMessageBody(new String(message.getBody()));

I getting trace log msgs and bind my queue to trace log.  From those messages I am getting the above info.

I am getting it delivered, but who acutally consumed?
Regards ...*
Srinath

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140508/d680776d/attachment.html>


More information about the rabbitmq-discuss mailing list