Re: Processing only one message

2022-10-04 Thread Stephen Baker
? this.getDefaultConsumerWindowSize(queueInfo) : windowSize; I haven’t brought it up before because I’m not sure it’s worth fixing. From: Clebert Suconic Date: Friday, September 30, 2022 at 9:02 PM To: users@activemq.apache.org Subject: Re: Processing only one message Internal property on the consumer I meant

Re: Processing only one message

2022-09-30 Thread Clebert Suconic
www.google.com/maps/search/888+Worcester+Street,+Suite+200+Wellesley,+MA+02482?entry=gmail=g> >> >> *M: *+1 7209385761 <+1%207209385761> | john.lil...@redpointglobal.com >> >> *From:* Clebert Suconic >> *Sent:* Friday, September 30, 2022 3:02 AM >> *To:* u

Re: Processing only one message

2022-09-30 Thread Clebert Suconic
; <https://www.google.com/maps/search/888+Worcester+Street,+Suite+200+Wellesley,+MA+02482?entry=gmail=g> > > *M: *+1 7209385761 <+1%207209385761> | john.lil...@redpointglobal.com > > *From:* Clebert Suconic > *Sent:* Friday, September 30, 2022 3:02 AM > *To:* users@acti

RE: Processing only one message

2022-09-30 Thread John Lilley
lobal.com> From: Clebert Suconic Sent: Friday, September 30, 2022 3:02 AM To: users@activemq.apache.org Subject: Re: Processing only one message *** [Caution] This email is from an external source. Please use caution responding, opening attachments or clicking embedded links. *** Look at sl

Re: Processing only one message

2022-09-30 Thread Robbie Gemmell
hn.lil...@redpointglobal.com > > *From:* Robbie Gemmell > *Sent:* Friday, September 30, 2022 6:49 AM > *To:* users@activemq.apache.org > *Subject:* Re: Processing only one message > > > > [Caution] This email is from an external source. Please use caution > respondi

RE: Processing only one message

2022-09-30 Thread John Lilley
hitect, Redpoint Global Inc. 888 Worcester Street, Suite 200 Wellesley, MA 02482 M: +1 7209385761 | john.lil...@redpointglobal.com<mailto:john.lil...@redpointglobal.com> From: Robbie Gemmell Sent: Friday, September 30, 2022 6:49 AM To: users@activemq.apache.org Subject: Re: Processing only

Re: Processing only one message

2022-09-30 Thread Robbie Gemmell
If you only want to get a single message it might make more sense to use [possibly non-prefetching if really only wanting 1 message] consumer.receive(..) style calls rather than a MessageListener. Opening and closing a consumer and session per-message is quite inefficient. Are you also closing

Re: Processing only one message

2022-09-30 Thread Clebert Suconic
Look at slow consumers. Set consumer window size to 0 on this consumer. On Thu, Sep 29, 2022 at 6:01 PM John Lilley wrote: > We have an application that should read a single message from a queue (a > “job” queue) and then stop processing more messages. Think of it as a > “batch request”.

Processing only one message

2022-09-29 Thread John Lilley
We have an application that should read a single message from a queue (a “job” queue) and then stop processing more messages. Think of it as a “batch request”. This is entirely using the JMS driver. Is there a good pattern for this? Under ActiveMQ 5, I call consumer.close(), session.close()