Click the Code tab at the bottom of the
design workspace to have a look at the generated code.
As shown in the code, the incoming message
Message_sourceis routed by
.dynamicRouterto endpoints the URIs of which are dynamically set according to
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 source messages are routed to different endpoints based on the city names contained in the messages.