On 29/06/16 14:53, William Davidson wrote:
I'm trying to use a subject as part of a replyTo but am seeing differing behavior between queues and topics. Using the command-line tools to send and receive a message to the same queue:qpid-send -a myqueue --reply-to "myqueue/mysubject;{node:{type:queue}}" qpid-receive -a myqueue --print-headers yes When I receive the message back, the replyTo is "myqueue;{node:{type:queue}}" with the subject stripped. This is in contrast to when I do this with a topic, where the replyTo retains the specified subject. I am running qpid-cpp server 0.34. Is this working as intended? Thanks,
In AMQP 0-10, the reply to is defined to be an exchange and a routing key (since in that version you can only send a message to an exchange). Directly sending to a queue is accomplished by sending to the 'default' or nameless exchange represented by the empty string. The qpid::messaging API does this under the covers. A reply-to address that is intended to send directly to a queue has the exchange set to the empty string and the routing key set to the queue name. This means there is no way to convey a separate subject in the reply address.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
