[
https://issues.apache.org/jira/browse/AMQ-8028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236666#comment-17236666
]
ASF subversion and git services commented on AMQ-8028:
------------------------------------------------------
Commit d9113626e5e34f125b20157a2440e0ac9f70563e in activemq's branch
refs/heads/activemq-5.16.x from murali.mogalayapalli
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=d911362 ]
[AMQ-8028] Add sendWhenNotMatched option to composite destination filter
(cherry picked from commit 55914d3ac1dc90f35969ce16877429e475b9c2ab)
> CompositeQueue - A third pattern to complement forwardOnly binary property
> --------------------------------------------------------------------------
>
> Key: AMQ-8028
> URL: https://issues.apache.org/jira/browse/AMQ-8028
> Project: ActiveMQ
> Issue Type: Improvement
> Affects Versions: 5.15.13
> Reporter: Murali Mogalayapalli
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 5.17.0, 5.16.1
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> CompositeDestinationFilter forwardonly logic variation with a new setting
> Need - Forward the message to the virtual queue if the message can't be
> forwarded to any of the physical destinations in the list.
> {code:java}
> <destinationInterceptors>
> <virtualDestinationInterceptor>
> <virtualDestinations>
> <compositeQueue name="A.FOO" sendWhenNoMatch="true">
> <forwardTo>
> <filteredDestination selector="client-id LIKE 'first%'"
> queue="C1.A.FOO"/>
> </forwardTo>
> </compositeQueue>
> </virtualDestinations>
> </virtualDestinationInterceptor>
> </destinationInterceptors>
> {code}
> ForwardOnly - false - Sends a copy of the message to the Virtual destination
> ForwardOnly - true - Does not a copy of the message to the virtual destination
> SendWhenNoMatch- true - Sends a copy of the message to the composite
> destination only when message can't be sent to any destination because of the
> filters - Forward only is ignored.
> SendWhenNoMatch- false ( default ) - Falls back on the ForwardOnly setting.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)