Target is a common configuration used across many ESB conofugrations. Some mediators that uses this configuration are Clone, Iterate and Router.
A target specifies a mediation sequence, and endpoint or both. If a sequnce is specified it will be executed. If a endpoint is specified message will be sent to the endpoint. If both sequence and endpoint are specified, only sequence will be executed and endpoint will be ignored.
<target [sequence="string"] [endpoint="string"]> <sequence ....../>? <endpoint ....../>? </target>
*Note : Due to the limitation of the target implementation it allows to specify either sequenceRef Or endpointRef or the sequence (inline) or endpoint (inline) at once no multiple elements can be represent at once
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.