activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beep02 <>
Subject message distribution, how to control
Date Tue, 03 Jan 2012 11:43:04 GMT

I searched this forum for the answer, but did not find it.
Although the situation is probably typical.

Imagine 2 VMs. Each one responsible for subset of users and does process
messages for it's own subset of users.
Subsets are different on VM1 and on VM2.

Sender sends the message, intending to address the particular user, but
sender is not aware where the user is to be processed on VM1 or on VM2.

Suppose users distributed between VM1 and VM2 by some algorithm.

Suppose I wish to send the message to the VM, where the user IS BEING
processed, and I want to avoid sending of the message to the second VM,
which subset of users does not include my particular user. How can I do

Imagine that subsets are not constant, some users added to some subsets,
then removed and added to other subsets.

Message dispatcher should be AWARE of which VM currently IS BEING processing
the user of my interest.

VM1 and VM2  is 2 servers, when users "balanced" between servers in random
I want avoid sending the message to the server, where user IS NOT residing,
addressing EXACTLy the server where the user IS BEING processed.

How can I do that?

Thanks for helping me!

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message