Can message consumers use the pooledConnectionFactory class? AWS Active MQ documentation specifically has this note “Message consumers should never use the PooledConnectionFactory class.” Please advise.
From: Haritha Desikan <hdesi...@spscommerce.com> Date: Thursday, February 2, 2023 at 2:05 PM To: users@activemq.apache.org <users@activemq.apache.org> Subject: Re: Redelivered messages do not get transported to broker with consumers This is the reply I got from one of the app developers using these brokers. <dependency> <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-activemq-starter</artifactId> </dependency> 1:45<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspscommerce.slack.com%2Farchives%2FD048XJGHYAY%2Fp1675363556427969&data=05%7C01%7Chdesikan%40spscommerce.com%7Ccc55377b2250438b60cc08db05507566%7C925b353530d64f8fb70fa7aa7e1b3445%7C0%7C0%7C638109615347868693%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IOh61eQ%2Ffh6jbZHJwaWRk0ZJBi9tDg76xCDdL2pM7hA%3D&reserved=0> this lib is bundled 1:46<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspscommerce.slack.com%2Farchives%2FD048XJGHYAY%2Fp1675363577673069&data=05%7C01%7Chdesikan%40spscommerce.com%7Ccc55377b2250438b60cc08db05507566%7C925b353530d64f8fb70fa7aa7e1b3445%7C0%7C0%7C638109615347868693%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7k8Yqy%2Bfu4zqoHq5mCCsu9VEzAsWmdnw1UjJ48gPKcc%3D&reserved=0> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-broker</artifactId> </dependency> 1:46<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspscommerce.slack.com%2Farchives%2FD048XJGHYAY%2Fp1675363583521729&data=05%7C01%7Chdesikan%40spscommerce.com%7Ccc55377b2250438b60cc08db05507566%7C925b353530d64f8fb70fa7aa7e1b3445%7C0%7C0%7C638109615347868693%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FnbazgP6olOf3FaTkvPejtE3qeWahU%2FQWL3FtDaeGJM%3D&reserved=0> version 5.16.4 1:47<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspscommerce.slack.com%2Farchives%2FD048XJGHYAY%2Fp1675363639193999&data=05%7C01%7Chdesikan%40spscommerce.com%7Ccc55377b2250438b60cc08db05507566%7C925b353530d64f8fb70fa7aa7e1b3445%7C0%7C0%7C638109615347868693%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tWFYKEP1J%2BIyRvAmMhhjUbx5toqJqveWQ4ihgxkwoNA%3D&reserved=0> 2. I'm only testing a single instance of the the app and all 10 consumers are always on the same broker ________________________________ From: Justin Bertram <jbert...@apache.org> Sent: Thursday, February 2, 2023 1:28:35 PM To: users@activemq.apache.org <users@activemq.apache.org> Subject: Re: Redelivered messages do not get transported to broker with consumers [You don't often get email from jbert...@apache.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] What client library (or libraries) are your Java-based applications using? Out of curiosity, how come you're using a network of 3 broker pairs if you have so few consumers? Justin On Thu, Feb 2, 2023 at 12:09 PM Haritha Desikan <hdesi...@spscommerce.com> wrote: > Hi Justin, > > We are using broker version 5.17.2. All our clients are mostly Java based > applications except for one python based app. We have 3 active/standby > pairs of Active MQ brokers connected in this fashion – broker 1 has duplex > connections to both broker 2 and broker 3 , broker 2 has one duplex > connection to broker 3. We have a load balancer in the front that directs > traffic to these three brokers. > We notice that there is only one active consumer at a time on either one > of the three brokers and the remaining two brokers have no consumers (only > has network connectors that connects them to the other broker). > > This particular issue is only happening when messages are “redelivered” to > a queue and the “JMXDeliveryCount” is more than 2. For example, lets say > broker 3 has “redelivered” messages on queue X and then our app connects to > broker 2, messages on broker 3 do not move to broker 2 (they just sit there > and broker 2 does not receive any of the redelivered messages). However, > after multiple attempts when our app finally connects to broker 3 (where > redelivered messages are sitting), messages get consumed. This might not be > a bigger issue for apps with multiple instances however we have apps with a > single instance that could get affected by this issue. > > Please note that “messages” in the above paragraph refer to only > “redelivered” messages. > > > From: Justin Bertram <jbert...@apache.org> > Date: Thursday, February 2, 2023 at 12:03 PM > To: users@activemq.apache.org <users@activemq.apache.org> > Subject: Re: Redelivered messages do not get transported to broker with > consumers > [You don't often get email from jbert...@apache.org. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > > What version of the broker are you using? What kinds of clients are you > using? How are your brokers configured? What is the distribution of > consumers across the queues in the cluster? > > > Justin > > On Thu, Feb 2, 2023 at 10:57 AM Haritha Desikan <hdesi...@spscommerce.com> > wrote: > > > Hi, > > > > Our company recently decided to make a shift to Active MQ. Our > > infrastructure currently uses a mesh of three active/standby broker pairs > > and we have been facing an issue with the brokers where redelivered > > messages sitting on a queue in one particular broker are not being > > transported to the broker with active consumers on it. > > > > Please provide some guidance/insight as to what can be done in such > > scenarios. > > > > Thank you, > > Haritha > > Cloud Systems Engineer > > SPS Commerce > > > > >