Sometime back I posted in following topic regarding binding queues with topics and filtered destination was the answer. That indeed works but I'm expecting something more.
http://activemq.2283324.n4.nabble.com/Binding-Queues-with-Topics-td4666577.html *Scenario 1:* 1.1. 3 consumer is running on topic "topic.demo" . topic.demo shows 3 consumers. 1.2. A producer publishes two messages to a topic with selectors odd=yes and even=no. 1.3. All 3 consumers instantly consume copy of both messages. *Scenario 2* 2.1. Two filtered destination are configured to filter messages from topic.demo as follows <destinationInterceptors> <virtualDestinationInterceptor> <virtualDestinations> <compositeTopic name="topic.demo"> <forwardTo> <filteredDestination selector="odd = 'yes'" queue="FOO"/> <filteredDestination selector="even = 'no'" queue="BAR"/> </forwardTo> </compositeTopic> </virtualDestinations> </virtualDestinationInterceptor> </destinationInterceptors> 2.2. 1 Consumer is running on topic.demo - topic.demo has 1 consumer 2.3. A producer publishes two messages with selectors odd=yes and even=no. 2.4. Both messages are filtered and the one with odd=yes goes in FOO and even=on goes in BAR 2.5. Consumer doesn't receives nothing. I want the queues to act as consumers and should get only the messages which belong to them from the topic but the consumers running on the topic should receive a copy of all messages posted in the topic. Can somebody help on how to achieve this? In a system where each message is important and we have multiple consumers consuming that same message we need to persist the messages somewhere for recovery for which the messages should be consumed by consumers as well as should get enqueued in their respective filtereddestination queues. -- View this message in context: http://activemq.2283324.n4.nabble.com/Filtered-destination-doesn-t-act-as-Consumer-to-a-topic-tp4667116.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
