Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2044

Add broker plugin methods to handle errors during "send"/"route" operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • None
    • None

    Description

      In the ActiveMQServerMessagePlugin class, there are the "beforeSend" and "afterSend" methods for getting notified about the sending of a message.

      There is no method for being notified on when there was an error sending the message, though. This would be something like an "onSendError" method.

      Same applies to "beforeMessageRoute"/"afterMessageRoute".

      (An "onDeliverError" method wouldn't fit here since "afterDeliver" is being called in a "finally" block, hence also in case of an exception).

       

      So it would be good to have methods like "onSendError" and "onMessageRouteError" in ActiveMQServerMessagePlugin.

      This is needed for implementing OpenTracing support via a broker plugin - see ARTEMIS-2028.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              calohmn Carsten Lohmann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: