Hi Charles,

This creates 2 separate virtual subscriptions to the topic, which will
create a separate queue for each consumer.  What you want is for both
to connect to the same destination name
'Consumer.A.VirtualTopic.Orders', just as you would do for a normal
load-balanced queue.

cheers,

James.
--

On 1 June 2010 13:16, cmoulliard <cmoulli...@gmail.com> wrote:
>
> Hi,
>
> I have configured an ActiveMq server 5.3.2 to use VirtualTopic :
>
>       <!-- Virtual topics -->
>       <destinationInterceptors>
>              <virtualDestinationInterceptor>
>                <virtualDestinations>
>                  <virtualTopic name=">" />
>                </virtualDestinations>
>              </virtualDestinationInterceptor>
>       </destinationInterceptors>
>
> I have two consumers connected to the following queues :
>
> Consumer.A.VirtualTopic.Orders
> Consumer.B.VirtualTopic.Orders
>
> and I produce the messages like that
>
> ant producer -Dsubject="VirtualTopic.Orders" -Dtopic="true" -Ddurable=true
> -Dmax=200
>
> When I look to the messages received by ConsumerA and ConsumerB, they
> receive both all the messages.
>
> Question : Is it a normal behavior or should I do something else to
> loadbalance messages between consumers where messages are published in a
> VirtualTopic ?
>
> KR,
>
>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: 
> http://old.nabble.com/Strange-behavior-with-VirtualTopic-and-loadbalancing-tp28740437p28740437.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Reply via email to