This documentation is for WSO2 ESB version 4.5.1. View documentation for the latest release.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The In and Out Mediators act as predefined filters. Messages, which are in the in path of the ESB will traverse through the child mediators of the In Mediator. Messages, which 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

None.


Usage Scenario

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

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

Note

These Mediators are pointless to be used in Proxy Service sequences. Proxy Services has predefined sequences for in messages and out messages.

  • No labels