You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by Yanfeng Liu <Ya...@ygomi.com> on 2015/06/23 09:27:57 UTC
how to know a temporary queue name created by PROTON-J client
Hi,
We are trying PROTON libraries and we found that with PROTON-C, we can create temporary queues using "amqp://host/#" style URL. Then we can use " pn_subscription_address()" API to learn the temporary queue name:
pn_subscription_t * sub = NULL;
if ((sub = pn_messenger_subscribe(messenger, "amqps://10.69.3.1/#")) == NULL) {
printf("!!!queue %s does not exists\n",address);
}
printf("a subscribed address:%s\n",pn_subscription_address(sub));
However, we can't find a similar thing in PROTON-J library since the "subscribe()" method in PROTON-J returns nothing. Does the PROTON-J has another equivalent approach?
Best regards,
Yanfeng