users@glassfish.java.net

Re: JMS load balancing does not occur when using message selectors

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 May 2007 01:31:36 PDT

[b]
Could you please elaborate on what you expect to see in load balancing for a queue destination.
[/b]

Sure. What i expect is what happens when you have, for example, two consumers on a given queue: round robin. For example, if i have queue Q and consumers C1 and C2, and i send messages with a property called "count" whith consecutive values (1,2,3,4,5,6,...) i get (tested with GF):

C1 -> m1,m3,m5,...
C2 -> m2,m4,m6,...

Now, imagine i set the following selectors:

C1 ->"count > 0"
C2 ->"count > 3"

what i get is:

C1 -> m1,m2,m3,m4,m5,m6...

and i think i should get:

C1 -> m1,m2,m3,m4,m6,m8,m10...
C2 -> m5,m7,m9...
[Message sent by forum member 'andresgr' (andresgr)]

http://forums.java.net/jive/thread.jspa?messageID=216919