You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2017/03/15 00:07:41 UTC
[jira] [Updated] (QPID-6952) [AMQP 1.0 C++ and Python Client]
Temporary queues broken if using queue name instead of Address.
[ https://issues.apache.org/jira/browse/QPID-6952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Ross updated QPID-6952:
------------------------------
Component/s: C++ Client
> [AMQP 1.0 C++ and Python Client] Temporary queues broken if using queue name instead of Address.
> ------------------------------------------------------------------------------------------------
>
> Key: QPID-6952
> URL: https://issues.apache.org/jira/browse/QPID-6952
> Project: Qpid
> Issue Type: Bug
> Components: C++ Client
> Environment: Red Hat Enterprise Linux Server release 6.7 (Santiago)
> The _qpid-cpp_ code has been built with _qpid-proton_ version 0.10.
> The broker is ActiveMQ 5.12.1.
> The protocol used in AMQP 1.0.
> Reporter: HÃ¥kan Johansson
> Attachments: cpp_experiment.cc, experiment.py
>
>
> I create a temporary queue by creating a receiver with {{"#"}} as queue name. So far so good. The problem comes when I try to send a reply on that queue. If I use the {{Address}}, then it works, but not if I use the resulting queue name.
> In C++ this is easy to work around, just use the result from {{receiver.getAddress()}} when setting the reply-to queue and use the sender constructor that takes an {{Address}} object.
> In Python this becomes a bit of a problem since the SWIG:ed methods gets rid of the {{Address}} object and returns a string instead. I have to call the private method {{message._getReplyTo()}} to get it to work. If I use {{message.reply_to}} or {{message.getReplyTo()}} I get a string instead, which does not work.
> If I use the reply-to queue name when creating the sender, a queue named {{"temp-queue:"}} is created (the actual queue name is something like {{"temp-queue://ID:myhostname-48781-1447769813910-2:47564:0"}}).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org