If the consumers aren't sharing a subscription then other consumers wont be affected, as they would each get their own copies of all the messages on the topic.
On Thu, 31 Mar 2022 at 16:43, rahul.sin...@morganstanley.com <rahul.sin...@morganstanley.com> wrote: > > OK, I will have a look. > Out of curiosity, does the same behavior apply to Topics as well. We now know > that on queues, we need to either ack or release it. Topics are used to > provide broadcasts and I was wondering if the same applies to it. Broadcasts > never come with uniqueAppID since these are unsolicited. Hence, selector > logic wont apply to it anyways. So, if I ack the message, will that mean > other instances might not receive them? > I noticed that (as you rightly pointed), releasing them brings it back to out > receiver many times which is not ideal. > > Best Regards, > Rahul > > -----Original Message----- > From: Robbie Gemmell <robbie.gemm...@gmail.com> > Sent: 31 March 2022 16:33 > To: users <users@qpid.apache.org> > Subject: Re: QPID C++ Queue handling > > 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, rahul.sin...@morganstanley.com > <rahul.sin...@morganstanley.com> 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 <g...@redhat.com> > > Sent: 31 March 2022 12:06 > > To: users@qpid.apache.org > > Subject: Re: QPID C++ Queue handling > > > > On Thu, Mar 31, 2022 at 11:30 AM rahul.sin...@morganstanley.com > > <rahul.sin...@morganstanley.com> 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: users-unsubscr...@qpid.apache.org For > > additional commands, e-mail: users-h...@qpid.apache.org > > > > > > ---------------------------------------------------------------------- > > ---------- > > 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: users-unsubscr...@qpid.apache.org For additional > commands, e-mail: users-h...@qpid.apache.org > > > -------------------------------------------------------------------------------- > 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: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org