You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Bruno Matos <br...@paradigmaxis.pt> on 2010/12/10 14:42:04 UTC

MessageProperties - UserId

Hi,

I need to identify messages by user, but I need to customize the ID. Can
I use UserId field of MessageProperties class or is this automatically
set by the system?

Thank you,
Bruno Matos


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: MessageProperties - UserId

Posted by Bruno Matos <br...@paradigmaxis.pt>.
On Fri, 2010-12-10 at 09:01 -0500, Ted Ross wrote:
> On 12/10/2010 08:42 AM, Bruno Matos wrote:
> > Hi,
> >
> > I need to identify messages by user, but I need to customize the ID. Can
> > I use UserId field of MessageProperties class or is this automatically
> > set by the system?
> >
> > Thank you,
> > Bruno Matos
> >
> >
> > ---------------------------------------------------------------------
> > Apache Qpid - AMQP Messaging Implementation
> > Project:      http://qpid.apache.org
> > Use/Interact: mailto:users-subscribe@qpid.apache.org
> >
> You can set the userId in the message, but if you use a different ID 
> than was used to authenticate the connection, the broker will reject the 
> message.
> 
> This mechanism allows message receivers to trust the userId field 
> because it has been authenticated and vouched-for by the broker.
> 
> If you need to use it for a different purpose, you might consider adding 
> a new field to MessageProperties.application_headers.
> 
> -Ted
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
> 
> 

Thank you Ted, I will need to add a new field to message properties
then.



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: MessageProperties - UserId

Posted by Ted Ross <tr...@redhat.com>.
On 12/10/2010 08:42 AM, Bruno Matos wrote:
> Hi,
>
> I need to identify messages by user, but I need to customize the ID. Can
> I use UserId field of MessageProperties class or is this automatically
> set by the system?
>
> Thank you,
> Bruno Matos
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
You can set the userId in the message, but if you use a different ID 
than was used to authenticate the connection, the broker will reject the 
message.

This mechanism allows message receivers to trust the userId field 
because it has been authenticated and vouched-for by the broker.

If you need to use it for a different purpose, you might consider adding 
a new field to MessageProperties.application_headers.

-Ted


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org