You have to include the x-bindings like the following syntax

my_queue ; { mode: consume, create: always, node: { type: queue, x-bindings:
[{ exchange: amq.direct, queue: my_queue, key: my_routing_key }] } }

-----Original Message-----
From: Phil Brown [mailto:[email protected]] 
Sent: sexta-feira, 3 de junho de 2011 15:25
To: [email protected]
Subject: address strings

Hi,

I am having an issue with address strings.  About 1/2 of the client
applications are still using the qpid client api and the rest are using qpid
messaging api.  It isn't quite feasible to change the older apps at this
particular instance.

The server creates a queue using the messaging api:

session.CreateReceiver("my_queue; {create: always}";

The older clients are declaring the "my_queue" using routing key
"my_routing_key"  and sending messages via "amq.direct/my_routing_key".

Is there a way to declare my server's receiver address such that it will
handle messages sent either directly to the queue or via
"amq.direct/my_routing_key"?

Thanks so much for you time and help!

      Phil.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to