Virtual topics with selectorAware=true with camel-jms
Issue
- We are using a virtual topic in ActiveMQ, and our Camel route consumes from an appropriately named queue. If the route is stopped, messages build up in the queue as we would expect (standard behaviour for a durable topic subscription). H
- However, want to add a message selector to the route, as only certain messages should be processed. To prevent the build up of other messages in the queue, we have set the
selectorAwareproperty to true. While the route is running this works fine. However, when the route is stopped no messages build up in the queue. It seems that settingselectorAwareto true effectively changes the subscription to be non-durable. Is there another setting that needs to be made to correct this? - Is the relation between message selector <-> message queue is 1-to-1 relation ?
Environment
- Red Hat JBoss Fuse
- 6.x
- Red Hat JBoss AMQ
- 6.x
- Apache Camel
- camel-jms component
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
