qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: how do I retrieve the subject from JMS?
Date Fri, 24 Jun 2011 16:22:39 GMT
On 06/24/2011 05:13 PM, Rajith Attapattu wrote:
> Unfortunately the JMS client doesn't put the routing key in message
> properties when sending messages.
> However I believe the C++ client includes a property called
> ""x-amqp-0-10.routing-key"
> I checked with the C++ version of spout but it didn't seem that
> property was used.

It's only used for reading the routing key of a received message (you 
can control the routing key for messages you sent through the address 
name or subject (depending on node type).

> I came across this property when fixing QPID-2930, but can't remember
> the exact circumstances under which this property was set.
>
> Perhaps Gordon can comment more on this.
>
> Rajith
>
> On Fri, Jun 24, 2011 at 11:13 AM, fadams<fraser.adams@blueyonder.co.uk>  wrote:
>> So guys, if the subject isn't what I actually need is it possible to retrieve
>> the routing key in (JMS) client code?
>>
>> It's kind of useful to be able to "probe" subjects/routing-keys to see
>> what's being published so one can refine a particular subscription.
>>
>> Or maybe I'm just weird :-)
>>
>>
>> Gordon Sim wrote:
>>>
>>>
>>> It is a little confusing. The concept of subject doesn't actually exist
>>> in AMQP 0-10. There is the concept of a routing-key which is in many
>>> ways like a subject
>>>
>>>
>>
>>
>> --
>> View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/how-do-I-retrieve-the-subject-from-JMS-tp6491033p6512361.html
>> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
>


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


Mime
View raw message