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

ASF GitHub Bot commented on ARTEMIS-1633:
-----------------------------------------

Github user clebertsuconic commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1816#discussion_r163905434
  
    --- Diff: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
 ---
    @@ -772,6 +772,8 @@ public RoutingStatus route(final Message message,
     
           message.cleanupInternalProperties();
     
    +      server.callBrokerPlugins(server.hasBrokerPlugins() ? plugin -> 
plugin.beforeMessageRoute(message, context, direct, rejectDuplicates) : null);
    --- End diff --
    
    in what situation this was not happening? paging?


> ActiveMQServerPlugin message routing callbacks should fire for all results
> --------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1633
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1633
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.4.0
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>            Priority: Major
>             Fix For: 2.5.0
>
>
> When I added the callbacks for beforeMessageRoute and afterMessageRoute I 
> accidentally inserted them so that they will only be called when the 
> RoutingStatus result is OK.  They should always be called even if the status 
> is no bindings, or no bindings DLA, etc to allow the plugin writer to handle 
> events depending on the routing status.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to