The Loopback Mediator moves messages from the in flow (request path) to the out flow (response path). All the configuration included in the in sequence that appears after the Loopback mediator is skipped.
The messages that have already been passed from the In sequence to the Out sequence cannot be moved to the Out sequence again via the Loopback mediator.
|Table of Contents|
The loopback token refers to a <
loopback> element, which is used to skip the rest of the in flow and move the message to the out flow.
As with other mediators, after adding the Loopback mediator to a sequence, you can click its up and down arrows to move its location in the sequence.
This example is a main sequence configuration with two PayloadFactory mediators. Assume you only want to use the first factory but need to keep the second factory in the configuration for future reference. The Loopback mediator is added after the first PayloadFactory mediator configuration to skip the second PayloadFactory mediator configuration. This configuration will cause the message to be processed with the first payload factory and then immediately move to the out flow, skipping the second payload factory in the in flow.