This documentation is for WSO2 Enterprise Integrator version 6.3.0 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc
Skip to end of metadata
Go to start of metadata

The Drop Mediator stops the processing of the current message. This mediator is useful for ensuring that the message is sent only once and then dropped by the ESB profile. If you have any mediators defined after the <drop/> element, they will not be executed, because <drop/> is considered to be the end of the message flow.

When the Drop mediator is within the In sequence, it sends an HTTP 202 Accepted response to the client when it stops the message flow. When the Drop mediator is within the Out sequence before the Send mediator, no response is sent to the client.

The Drop mediator is a content-unaware mediator.


The drop token refers to a <drop> element, which is used to stop further processing of a message:


UI Configuration

As with other mediators, after adding the drop mediator to a sequence, you can click its up and down arrows to move its location in the sequence.


You can configure the mediator using XML. Click switch to source view in the Mediator window.


You can use the drop mediator for messages that do not meet the filter criteria in case the client is waiting for a response to ensure the message was received by the ESB profile. For example:

<definitions xmlns="">
  <sequence name="main">
     <!-- filtering of messages with XPath and regex matches -->
       <filter source="get-property('To')" regex=".*/StockQuote.*">
                   <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>

In this scenario, if the message doesn't meet the filter condition, it is dropped, and the HTTP 202 Accepted response is sent to the client. If you did not include the drop mediator, the client would not receive any response.

  • No labels