Configuring the components and connections - 7.3

Messaging Endpoint (Mediation)

EnrichVersion
Cloud
7.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance > Third-party systems > Routing components (Mediation) > Messaging Endpoint components (Mediation)
Data Quality and Preparation > Third-party systems > Routing components (Mediation) > Messaging Endpoint components (Mediation)
Design and Development > Third-party systems > Routing components (Mediation) > Messaging Endpoint components (Mediation)

Procedure

  1. Double-click the cFile component to open its Basic settings view in the Component tab.
  2. In the Path field, specify the path where the source file people.xml is located.
  3. Right-click the Route from the repository tree view and select Manage Route Resources from the context menu.
    The Manage Route Resources wizard is opened.
  4. In the Manage Route Resources wizard, click Add and select SampleXquery from the Resources tree view in the dialog. Click OK.
    The SampleXquery Route Resource is added in the table of the Manage Route Resources wizard.
  5. Select the SampleXquery from the Route Resources list and click Copy Path. Click OK to close the wizard.
  6. Double click the cMessagingEndpoint component to display its Basic settings view in the Component tab.
  7. In the URI field, enter xquery: and paste the path of the Route Resource SampleXquery that we just copied in double quotation marks.
  8. Click the Advanced settings tab, add the Camel component saxon in the Dependencies list. For more information about Xquery, see Apache Camel's Website: http://camel.apache.org/xquery-endpoint.html.
  9. Double-click the cProcessor component to open its Basic settings view in the Component tab.
  10. In the Code area, enter the following code to display the messages intercepted on the console:
    System.out.println(exchange.getIn().getBody(String.class));
  11. Press Ctrl+S to save your Route.