This documentation is for WSO2 Enterprise Service Bus version 4.8.1 . View documentation for the latest release.

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

The In and Out Mediators act as predefined filters. Messages that are in the In path of the ESB will traverse through the child mediators of the In Mediator. Messages that are in the Out path of ESB will traverse through the child mediators of the Out Mediator.



Syntax

In

<in>
      mediator+
</in>

Out

<out>
      mediator+
</out>

UI Configuration

After adding an In or Out mediator, you add and configure its child mediators.


Usage Scenario

<sequence name="main" xmlns="http://ws.apache.org/ns/synapse">
      <in>
          <log level="full"/>
          <filter source="get-property('To')" regex="http://localhost:9000.*">
              <send/>
          </filter>
      </in>
      <out>
          <send/>
      </out>
</sequence>

Messages coming to the ESB will be sent using wsa:to address and responses will be sent back to the requester.

Note

Do not use these mediators in proxy service sequences, as proxy services have the predefined sequences <inSequence> and <outSequence> for this purpose.

  • No labels