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 (JIRA)" <ji...@apache.org> on 2015/07/08 02:09:04 UTC

[jira] [Updated] (PROTON-938) Have APIs to know address of temporary queue created by Proton-J program

     [ https://issues.apache.org/jira/browse/PROTON-938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

yanfeng liu updated PROTON-938:
-------------------------------
    Description: 
It seems that Proton-J lacks the method to retrieve the address of a temporary queue created by Proton-J client application. The corresponding method exists in Proton-C like:

{code:title=tempQueue.c|borderStyle=solid}
// Subscribe w/ temp queue, print out the temp queue's 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));
{code}

However, in Proton-J, the Subscribe() method is defined as void.

Regards,
yf





  was:
It seems that Proton-J lacks the method to retrieve the address of a temporary queue created by Proton-J client application. The corresponding method exists in Proton-C like:

  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, in Proton-J, the Subscribe() method is defined as void.

Regards,
yf






> Have APIs to know address of temporary queue created by Proton-J program
> ------------------------------------------------------------------------
>
>                 Key: PROTON-938
>                 URL: https://issues.apache.org/jira/browse/PROTON-938
>             Project: Qpid Proton
>          Issue Type: Wish
>          Components: proton-j
>    Affects Versions: 0.9.1
>         Environment: Ubuntu Linux
>            Reporter: yanfeng liu
>              Labels: documentation, features
>
> It seems that Proton-J lacks the method to retrieve the address of a temporary queue created by Proton-J client application. The corresponding method exists in Proton-C like:
> {code:title=tempQueue.c|borderStyle=solid}
> // Subscribe w/ temp queue, print out the temp queue's 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));
> {code}
> However, in Proton-J, the Subscribe() method is defined as void.
> Regards,
> yf



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)