# Configuring the components

## Procedure

1. Double-click cFile to open its Basic settings view in the Component tab.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_crecipientlist_2.png)
2. In the Path field, type in the path to the source message, for example, "E:/data/input". Keep other default settings unchanged.
3. Double-click cSetHeader to open its Basic settings view in the Component tab.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_crecipientlist_3.png)
4. Click [+] to add a row to the Headers table.

   In the Name field, enter the header name, for example, "ListOfRecipients".

   In the Language list, select *Constant*.

   In the Value field, enter the endpoint URIs, for example, "direct:a,direct:b".
5. Double-click cRecipientList to open its Basic settings view in the Component tab.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_crecipientlist_4.png)
6. In the Language list, select Header.

   In the Expression field, enter the name of the header that contains the recipients list, that is, "ListOfRecipients".
7. Double-click Recipient\_A to open its Basic settings view in the Component tab and define the URI of recipient A.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_crecipientlist_5.png) Perform the same operation to Recipient\_B to define the URI of recipient B.
8. Double-click Print\_File\_Name\_A to open its Basic settings view in the Component tab and enter the code below to print out the message received by Recipient\_A.System.out.println("Recipient\_a just downloaded:"+exchange.getIn().getHeader("CamelFileName"));

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_crecipientlist_6.png)

   Perform the same operation to Print\_File\_Name\_B and type in the code below in its code box:
   ```
   System.out.println("Recipient_b just downloaded:"+exchange.getIn().getHeader("CamelFileName"));
   ```
9. Press Ctrl+S to save your Route.