Viewing code and executing the Route - 6.5

Routing Slip - Mediation

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Routing components (Mediation) > Routing Slip components (Mediation)
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Routing Slip components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Routing Slip components (Mediation)
EnrichPlatform
Talend Studio

Procedure

  1. Click the Code tab at the bottom of the design workspace to have a look at the generated code.
    In this partially shown code, messages from the sender are given a header according to .setHeader, which carries a list of URIs returned by the beans.setEndpoints.class, and then routed to the cRoutingSlip_1.
  2. Click the Run view to display it and click the Run button to launch the execution of your Route.
    You can also press F6 to execute it.
    RESULT: The sources are routed consecutively to the defined endpoints: the message containing the city name Beijing is routed first to endpoint c, then to endpoint a, and finally to endpoint b; the message containing the city name Paris is routed first to endpoint a, then to endpoint b, and finally to endpoint c; the other messages are routed to endpoint b and then to endpoint c.