qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kim Garcia <jsma...@hotmail.com>
Subject RE: onMessage() always acknowledges msg even if Session is set to CLIENT_ACK
Date Wed, 09 Mar 2011 19:47:00 GMT

Hi Rajith,
It doesn't matter if the apps are consumers or queue browsers as long as they share the messages
(or get their own copy).
I'm looking into using the javax.jms Topic object as suggested, but do the messages have to
be sent to a topic instead of a queue? If so, then that won't work for me. I have messages
being sent to an AMQ queue, and at this time, that cannot change.
The answer below is assuming that all your apps are consumers and not queue
If thats not the case then please let me know.
On Wed, Mar 9, 2011 at 9:53 AM, Rajith Attapattu <rajith77@gmail.com> wrote:
> Kim,
> If you want all the apps (consumers) on the same queue to get all the
> messages in the queue, then using 'Queues (as in JMS terms)' is not going
> to do it.
> As in a shared queue situation the messages will be distributed among them.
> Therefore you should use a Topic and all your consumers will get a copy of
> every message sent to that topic.
> Regards,
> Rajith
> On Wed, Mar 9, 2011 at 12:05 AM, Kim Garcia <jsmam97@hotmail.com> wrote:
>> Rajith,
>> I have been trying to respond to your email all day but Hotmail keeps
>> saying the delivery has failed...
>> ----------------------------------------------------------------------------------------------------------------------------
>> Thank you for looking into this, Rajith.
>> I'm not using any
>> tools to verify if the message has been acked. I am running 2 of the
>> same Java application. If I only run one, then it will get the messages
>> like normal. If I run 2, they do not both get the same messages. I see
>> that if app #1 gets message #1, then app #2 will not get message #1. The
>> same applies for messages app #2 gets -- app #1 will not get them. I
>> would like several apps to monitor the same queue with a listener and
>> for all apps to get all of the messages.
>> Thanks.
>> > Date: Mon, 7 Mar 2011 18:07:19 -0500
>> > Subject: Re: onMessage() always acknowledges msg even if Session is set
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message