The Clone Mediator can be used to clone a message into several messages.
The Clone Mediator closely resembles the Message Splitter EIP and will copy the message into a number of identical messages that will be processed in parallel. The original message cloned can be continued or dropped depending on the Boolean value of the optional
continueParent attribute. Optionally, a custom
To address and/or an
soapAction may be specified for cloned messages.
The Clone Mediator Field Descriptions
Number of clones can be controlled by adding one or more clone targets by clicking on the "Add Clone Target" link. Targets can then have their own sets of mediators.
The "Target Configuration" Window of the Mediator
Here, you can prepare a message to send to an endpoint or mediate through some more sequences.
Note : If both Sequence and Endpoint defined, only sequence will be invoked and endpoint will be ignored.
You can add in the Endpoint panel that can be accessed from the Manage-> Mediation-> Endpoints menu in the left hand side menu bar.
You can configure the Mediator using XML. Click on "switch to source view" in the "Mediator" window.
In this example, the Clone Mediator clones messages and redirects them to a Default Endpoint and an existing sequence.