You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Raphael Fuchs <ra...@gmail.com> on 2014/10/17 17:16:08 UTC

Create receiver for topic

Hello,

I am working on an AMQP client using Qpid V 0.28. The server uses ActiveMQ.

When trying to create a receiver like this:
    mSession.createReceiver("name_of_topic");

I get the error message
    not authorized to create: *queue*://name_of_topic

To make sure the library tries to connect to the topic I tried the following

    qpid::messaging::Address a(topic);
    a.setType("topic");
    log_info("address string: " + a.str());
    return mSession.createReceiver(a);

This prints the address string: name_of_topic;{node:{type:topic}}

Still, the server responds:

not authorized to create: *queue*://name_of_topic - name_of_topic

Do you have an idea why this happens?
In addition, is there a way to inspect the requests the library sends to
the server?

Thank you!
Raphael

Re: Create receiver for topic

Posted by Raphael Fuchs <ra...@gmail.com>.
Hi Jakub,

thanks a lot! It works now :)

Cheers
Raphael


2014-10-17 20:46 GMT+02:00 Jakub Scholz <ja...@scholz.cz>:

> Hi Raphael,
>
> Isn't this
>
> http://qpid.2158936.n2.nabble.com/QPID-0-28-C-Client-Subscribtion-to-Queues-or-Topics-AMQP-1-0-td7614162.html
> the same problem?
>
> Regards
> Jakub
>
> On Fri, Oct 17, 2014 at 5:16 PM, Raphael Fuchs <ra...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I am working on an AMQP client using Qpid V 0.28. The server uses
> ActiveMQ.
> >
> > When trying to create a receiver like this:
> >     mSession.createReceiver("name_of_topic");
> >
> > I get the error message
> >     not authorized to create: *queue*://name_of_topic
> >
> > To make sure the library tries to connect to the topic I tried the
> > following
> >
> >     qpid::messaging::Address a(topic);
> >     a.setType("topic");
> >     log_info("address string: " + a.str());
> >     return mSession.createReceiver(a);
> >
> > This prints the address string: name_of_topic;{node:{type:topic}}
> >
> > Still, the server responds:
> >
> > not authorized to create: *queue*://name_of_topic - name_of_topic
> >
> > Do you have an idea why this happens?
> > In addition, is there a way to inspect the requests the library sends to
> > the server?
> >
> > Thank you!
> > Raphael
> >
>

Re: Create receiver for topic

Posted by Jakub Scholz <ja...@scholz.cz>.
Hi Raphael,

Isn't this
http://qpid.2158936.n2.nabble.com/QPID-0-28-C-Client-Subscribtion-to-Queues-or-Topics-AMQP-1-0-td7614162.html
the same problem?

Regards
Jakub

On Fri, Oct 17, 2014 at 5:16 PM, Raphael Fuchs <ra...@gmail.com>
wrote:

> Hello,
>
> I am working on an AMQP client using Qpid V 0.28. The server uses ActiveMQ.
>
> When trying to create a receiver like this:
>     mSession.createReceiver("name_of_topic");
>
> I get the error message
>     not authorized to create: *queue*://name_of_topic
>
> To make sure the library tries to connect to the topic I tried the
> following
>
>     qpid::messaging::Address a(topic);
>     a.setType("topic");
>     log_info("address string: " + a.str());
>     return mSession.createReceiver(a);
>
> This prints the address string: name_of_topic;{node:{type:topic}}
>
> Still, the server responds:
>
> not authorized to create: *queue*://name_of_topic - name_of_topic
>
> Do you have an idea why this happens?
> In addition, is there a way to inspect the requests the library sends to
> the server?
>
> Thank you!
> Raphael
>