Skip to main content Skip to complementary content
Close announcements banner

Viewing code and executing the Route

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!