Its hard to say much without knowing exactly what you did, the linked
thread has a few different things in it.
The error suggests you are using Artemis and it is trying (and failing
due to permissions) to create an Address, which I wouldnt really
expect if you are consuming from an already known response queue, one
that I would assume already existed.
You might need to ensure the broker actually treats the things as
being an 'anycast' queue and treats the consumer as a regular queue
consumer, as I know Artemis typically defaults to treating things as
'multicast' for more topic-like behaviour, which might be a
problematic if you have different consumers with different selectors.
You can do that either by ensuring the address+queue definition is
anycat, or changing the broker side address settings [1][2] so
anything auto-created is considered 'anycast', or you could
alternatively add a 'queue' type hint into the consumer by setting the
type option into the consumer address string when creating the
receiver (from other threads I think "my-queue; { node:{ type: queue
}}" is the format of that).
[1]
https://activemq.apache.org/components/artemis/documentation/latest/address-model.html
[2]
https://activemq.apache.org/components/artemis/documentation/latest/address-settings.html
On Thu, 31 Mar 2022 at 13:47, [email protected]
<[email protected]> wrote:
>
> Many thanks Gordon. I tried using the selector while creating the Receiver
> for response queue (as per the example given
> https://lists.apache.org/thread/95ozl3hxf0cqzt0nxgbvwroddx39kq1w)
> However, I get below exception -
> std::exception Link detached by peer with amqp:unauthorized-access:
> AMQ119015: not authorized to create consumer, AMQ229032: User: FOOBAR does
> not have permission='CREATE_ADDRESS' on address 'XXXXX.ResQueue_L'
>
> Best Regards,
> Rahul
>
> -----Original Message-----
> From: Gordon Sim <[email protected]>
> Sent: 31 March 2022 12:06
> To: [email protected]
> Subject: Re: QPID C++ Queue handling
>
> On Thu, Mar 31, 2022 at 11:30 AM [email protected]
> <[email protected]> wrote:
> > 2) For the longer term/better solution, I will start looking into selector.
> > Is this within qpid C++ or proton layer. Any quick pointer will be highly
> > appreciated.
>
> For proton C++:
> https://github.com/apache/qpid-proton/blob/main/cpp/examples/selected_recv.cpp
>
> For example with the old qpid::messaging API see e.g.
> https://lists.apache.org/thread/95ozl3hxf0cqzt0nxgbvwroddx39kq1w
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] For additional
> commands, e-mail: [email protected]
>
>
> --------------------------------------------------------------------------------
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions
> or views contained herein are not intended to be, and do not constitute,
> advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform
> and Consumer Protection Act. If you have received this communication in
> error, please destroy all electronic and paper copies and notify the sender
> immediately. Mistransmission is not intended to waive confidentiality or
> privilege. Morgan Stanley reserves the right, to the extent permitted under
> applicable law, to monitor electronic communications. This message is subject
> to terms available at the following link:
> http://www.morganstanley.com/disclaimers If you cannot access these links,
> please notify us by reply message and we will send the contents to you. By
> communicating with Morgan Stanley you consent to the foregoing and to the
> voice recording of conversations with personnel of Morgan Stanley.
>
> You may have certain rights regarding the information that Morgan Stanley
> collects about you. Please see our Privacy Pledge
> https://www.morganstanley.com/privacy-pledge for more information about your
> rights.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]