[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 20:55:04 BST 2014
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/7fa66508/attachment.html>
More information about the rabbitmq-discuss
mailing list