-
1. Re: In what order does (stand-alone) HornetQ Server distribute messages to multiple clients connected to the same queue?
gaohoward Dec 19, 2012 9:20 PM (in response to bruceas)Yes it is round robin and it cannot be configured. The <connection-load-balancing-policy-class-name> doesn't work becaused it is used to control how a client creates connections to a hornetq cluster.
For your case I think you can use a Topic with 10 subscribers. each subscriber has a unique selector. On your producer side for each message you can set a property with a value that randomly picked up to match one of the selectors.
-
2. Re: In what order does (stand-alone) HornetQ Server distribute messages to multiple clients connected to the same queue?
bruceas Dec 20, 2012 11:27 AM (in response to gaohoward)Thank you very much, this answers my question!
Does the original order depend on when a client makes a connection? So if client 1 connects first, then client 2 connects 1 second later, then client 3 connects 1 second after that, will the order of the round-robin be 1-2-3-1-2-3, etc.?
Thanks again
-
3. Re: In what order does (stand-alone) HornetQ Server distribute messages to multiple clients connected to the same queue?
ataylor Dec 20, 2012 11:56 AM (in response to bruceas)yes, but remember there are other factors that may come into play such as consumer flow control, consumer buffering etc.
-
4. Re: In what order does (stand-alone) HornetQ Server distribute messages to multiple clients connected to the same queue?
bruceas Dec 20, 2012 12:15 PM (in response to ataylor)Understood. Thank you.