qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noel OConnor <noel.ocon...@gmail.com>
Subject Binding queue to Header exchange with 'any' qualifier
Date Thu, 04 Oct 2012 06:58:43 GMT
Hi,
I'm using MRG-M 2.2 and I'm trying to configure a header exchange to use
the any qualifier

I have setup a header exchange and a queue and I'm trying to bind it using
the command

/usr/bin/qpid-config bind test_hdr_exchange noctestQ BK3 any
STATUSPROP=ONLINEACTIVITY STATUSPROP=CAMPAIGNRESPONSE

and I drain the queue
using /usr/share/doc/python-qpid-0.14/examples/api/drain -f noctestQ

Using a JMS client running on AS7 when I send in a jms text message of

MessageProperties(contentLength=85,
messageId=fd2b91eb-9a53-393f-bba7-81c3e5968b5c, contentType=text/plain,
userId=[B@33e82057, applicationHeaders={STATUSPROP=CAMPAIGNRESPONSE,
qpid.subject=})

the drain command outputs
Message(id=UUID('fd2b91eb-9a53-393f-bba7-81c3e5968b5c'), subject=u'',
user_id='anonymous', priority=4, durable=True,
properties={'x-amqp-0-10.timestamp': timestamp(1349333278917.0),
u'qpid.subject': u'', u'STATUSPROP': u'CAMPAIGNRESPONSE',
'x-amqp-0-10.routing-key': u''}, content=u'This is a message from a servlet
org.apache.catalina.connector.RequestFacade@7b1d410d')

However when I send in a jms text message of
MessageProperties(contentLength=85,
messageId=c21af470-238c-38e2-8276-dbd9ae4eebfb, contentType=text/plain,
userId=[B@23e5d50a, applicationHeaders={STATUSPROP=ONLINEACTIVITY,
qpid.subject=})

Drain doesn't output anything.

I've tried using the comma separator with spaces e.g. /usr/bin/qpid-config
bind optus_hdr_exchange noctestQ BK3 any STATUSPROP=ONLINEACTIVITY ,
STATUSPROP=CAMPAIGNRESPONSE    but I get a Failed: IndexError: list index
out of range

I've also tried the above without a space before the comma but once again
the only the messages with CAMPAIGNRESPONSE set are output.

Any idea what I'm doing wrong ?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message