In your scenario, are both consumers already connected when the messages
are sent?
On Sep 18, 2015 4:59 PM, "sburczymucha" <sburczymuchate...@gmail.com> wrote:

> Hello,
>
> I would like to know if I understand how messages are processed in
> following
> configuration. Supposed I have a connection with message prefetch = 5, and
> folowing messages in queue:
>
> ID = 1, JMSXGroupID = 1
> ID = 2, JMSXGroupID = 1
> ID = 3, JMSXGroupID = 2
> ID = 4, JMSXGroupID = 1
> ID = 5, JMSXGroupID = 2
> ID = 6, JMSXGroupID = 1
> ID = 7, JMSXGroupID = 2
> ID = 8, JMSXGroupID = 1
>
> Client waits for messages with JMSXGroupID = 1. Now, because message
> prefetch = 5, all messages with JMSXGroupID = 1 are prefetched to client.
> After that, async listener is called with message ID 1, 2, 4, 6, 8 one by
> one, am I right? What happens now, when message ID = 4 is NACKed? Does
> listener receives message ID 4 again (until it is sent to DLQ queue) or it
> receives message Id = 6 because it is already prefetched?
>
> In other words, does listener behaves the same way with message prefetch =
> 5
> and message prefetch = 1?
>
> In this configuaration (prefetch = 5, JMSXGroupID set) does prefetch has
> any
> impact on broker clustering?
>
> Thank you, best regards,
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Prefetch-message-consumer-async-listener-and-message-grouping-transactions-clustering-how-does-it-wo-tp4702096.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to