[ 
https://issues.apache.org/jira/browse/AMQ-6058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022944#comment-15022944
 ] 

ASF GitHub Bot commented on AMQ-6058:
-------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/activemq/pull/159


> Certain VirtualTopic configurations send messages to the wrong queue
> --------------------------------------------------------------------
>
>                 Key: AMQ-6058
>                 URL: https://issues.apache.org/jira/browse/AMQ-6058
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.12.1
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>
> When testing out configurations of VirtualTopics I noticed some of the 
> behavior doesn't seem quite right when using certain VirtualTopic set ups.
> Consider a VirtualTopic with the default name of {{>}} and a prefix called 
> {{q.test.vt.*.}}  Normally the desired behavior is to only forward messages 
> to consumers with that prefix.  For example,  if a message is published to a 
> topic called {{mytopic}}, then the consumer would be on queue 
> {{q.test.vt.myconsumer.mytopic}}.  
> However, I've noticed that based on the interceptor logic that uses the 
> destination map to find matching destinations, if a higher level queue 
> exists, such as {{q.test.>}} in this case, that queue will also receive the 
> message.
> It seems desirable that only queues starting with the defined prefix should 
> get the message so we should probably do a quick sanity check in the 
> VirtualTopicInterceptor to make sure the destinations that match start with 
> the VirtualTopic prefix defined.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to