Hi James, Thanks again for your help. I've tried out message groups over queue. That's OK! But I really need to get work on TOPIC. I've tried VirtualTopic, but still can't get it wotk.
My broker config is as follow: <broker brokerName="localhost" useJmx="true" xmlns=" http://activemq.org/config/1.0" useVirtualTopics="true"> <destinationInterceptors> <virtualDestinationInterceptor> <virtualDestinations> <virtualTopic name=">" prefix="Consumer.*."/> </virtualDestinations> </virtualDestinationInterceptor> </destinationInterceptors> ... </broker> Producers publish on TOPIC "*VirtualTopic*.GONE_FISHING" messages splited on distinct groups ('Victoria' or 'Tanganika'). Consumers wait fro messages on QUEUE "Consumer."+*this*.connection .getClientID()+".VirtualTopic.GONE_FISHING" I set clientIDs to match distinct groups (i.e: 'Victoria' or 'Tanganika'). With that config, *all consumers still receive all messages*. I'm certainly wrong somewhere, but where???? Any idea? TIA Harry 2007/4/19, James Strachan <[EMAIL PROTECTED]>:
On 4/19/07, Harry Co <[EMAIL PROTECTED]> wrote: > Thanks James for that precision. > I have another question although. > You said > > Message Groups only applies to queues. > > > > Is that a part of JMS specification or just the way ActiveMQ handles > the need of JMSXGroupID upon "TOPICS"? > I went through the web and found nothing about that. Its a JMS specification thing. Topics mean every suitable consumer gets a copy of the message; so you cannot use topics for load balancing. http://activemq.apache.org/how-does-a-queue-compare-to-a-topic.html -- James ------- http://macstrac.blogspot.com/