No, that's not quite correct.

You are creating *two* consumers, each with the same selector expression 
""target='10' OR target='20'"

For each message sent to the queue you are posting 4 messages, with target =10, 
20, 30, 40

Therefore *both* of the two consumers will *each* receive the first two 
messages.

But in your code you are only waiting to receive *two* messages in total.

Think about it....

Remember, this is a topic so each subscription will get all messages that match 
the selector, in this case each suibscription will receive 2 messages.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952357#3952357

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952357


_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to