<font face="arial" size="2"><p style="margin:0;padding:0;">You can use props to tag msgs anyway you like..</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">
<p style="margin:0;padding:0;"><span style="white-space: pre;"> </span>AMQP.BasicProperties props = new AMQP.BasicProperties();</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;"><span style="white-space: pre;"> </span>BasicProperties.Builder prop = props.builder();</p>
<p style="margin:0;padding:0;"><span style="white-space: pre;"> </span>prop.messageId(msgID);</p>
<p style="margin:0;padding:0;"><span style="white-space: pre;"> </span>prop.deliveryMode(2);</p>
<p style="margin:0;padding:0;"><span style="white-space: pre;"> </span>prop.userId(UserID);</p>
</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">-----Original Message-----<br />From: "Emile Joubert" &lt;emile@rabbitmq.com&gt;<br />Sent: Tuesday, August 14, 2012 3:18am<br />To: "Discussions about RabbitMQ" &lt;rabbitmq-discuss@lists.rabbitmq.com&gt;<br />Cc: "PC" &lt;paddy.carman@gmail.com&gt;<br />Subject: Re: [rabbitmq-discuss] How to determine originator of a message?<br /><br /></p>
<div id="SafeStyles1344947446">
<p style="margin:0;padding:0;">Hi,<br /><br />On 13/08/12 17:55, PC wrote:<br />&gt;     When a message is received at a client for a particular topic (or<br />&gt; queue), is it possible to determine who was the originator of the message?<br /><br />No, not unless the the publisher annotated the message in some way, but<br />publishers are under no obligation to disclose their identity. The<br />broker will validate the user-id property in messages, if the publisher<br />chooses to disclose its identity using that property. See<br /><br />http://www.rabbitmq.com/validated-user-id.html<br /><br /><br /><br />-Emile<br /><br />_______________________________________________<br />rabbitmq-discuss mailing list<br />rabbitmq-discuss@lists.rabbitmq.com<br />https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</p>
</div></font>