activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Subscribe to multiple topics
Date Thu, 21 Nov 2013 15:00:16 GMT
idk.. how are you specifying the topics? show your configs.
composite consumer is demonstrated here:
https://github.com/apache/activemq/blob/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java

On Wed, Nov 20, 2013 at 11:18 PM, Steven Turner
<steventurner808@gmail.com> wrote:
> Hi,
> 1. I can't use wild cards because my topics doesn't follow any specific
> pattern like topic.A, topic.B. They can be anything. There is another
> problem with this approach. Say I use a wildcard topic.* to receive from
> topic.A and topic.B only. But if someone publishes on topic.X I will receive
> those messages also which I don't want. Clearly it is not a good approach.
>
> 2. I already tried composite destinations. I was able to use them with
> producer for sending messages but they didn't work with consumer. Consumer
> was consuming messages from only one topic. Is there some configuration that
> I may have done wrong causing this behavior. From the documentation it felt
> we can use composite destinations only to send messages.
>
> Are there any other approach besides these? Do I need multiple DMLC's for
> this? What could be the disadvantages of using multiple DMLC's?
>
> Thanks,
> Steven
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Subscribe-to-multiple-topics-tp4674684p4674711.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Mime
View raw message