Procedure
-
Click the Code tab at the bottom of the
design workspace to check the generated code:
As shown above, while messages are routed
from
the source endpoint.to
the destination endpoints, routing load balancing is implemented according to the.roundRobin()
method bycLoadBalancer_1
. -
Press F6 to run your Route.
RESULT: Of the four messages from the sender, two are routed to Receiver_A and two are routed to Receiver_B in a round robin manner.