I wish to create jms subscriber on a general topic. to avoid unwanted messages i wish to create a filter there. the problem is the syntax is available every where from java code but I can not find how to do same in xml configuration file like blueprint.xml
Java code
String redSelector = "color='red'";
MessageConsumer redConsumer = redSession.createConsumer(queue, redSelector);
Apache camel route
<route id="externalNotificationsDispatchRoute" >
<from uri="activemq:queue:{{vqueue.name}}" />
.. filtering part
<to uri="log:com?level=DEBUG" />
</route>
JMS Message Selector is specified with
selector
URI parameter.Blueprint:
Property file:
Refer JMS component documentation (ActiveMQ component iherits the parameters from the JMS component)