Skip to main content Skip to complementary content
Close announcements banner

Configuring the components and connections

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!