Procedure
-
Click the Code tab at the bottom of the
design workspace to check the generated code.
As shown above, the route gets the message from
Read_Input_cFile_1
, and.setHeader("ListOfRecipients")
using.constant("direct:a,direct:b")
. Then,cRecipientList_1
reads.header("ListOfRecipients")
and routes the message to the recipients included in it. -
Press F6 to execute the Route.
The message is sent to recipients included in the header.