message ordering in a queue with consumers using selectors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

message ordering in a queue with consumers using selectors

ferez
Hi

I got a question about message ordering in a queue with two consumers using
selectors to filter messages. Suppose producer P sends a message with
selector “region=A” (message A) and another one with “region=B” (message B)
to the queue. Now, consumer with selector “region=B” (consB) is registered
and ready to get the message B but there is no consumer for message A at the
moment. What happens here? Broker delivers message B to consB or it has to
wait until message A gets consumed or expired as message A is the first
message in queue? In other words does queue delivers the messages from the
first one or it can deliver a message whenever an appropriate consumer is
present regardless of message arrival to the queue?

Thanks,
Ferez




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html