Skip to main content Skip to complementary content

Configuring the components

Procedure

  1. Double-click the cTimer component to open its Basic settings view in the Component tab.
  2. Enter 1 in the Repeat field to trigger a message exchange one time.
  3. Double-click the cSetBody component to display its Basic settings view in the Component tab.
  4. Select Simple from the Language list and enter Hello! in the Expression field.
  5. Double-click the cJavaDSLProcessor component to open its Basic settings view in the Component tab.
  6. Enter .handleFault() in the Code box so that the fault message will be caught as an exception.
  7. Double-click the cTalendJob component to display its Basic settings view in the Component tab.
  8. Select Job RouteCommunication_tRouteFault from the repository to call the Job that is created in the previous section.
  9. Double-click the cOnException component to display its Basic settings view in the Component tab.
  10. Click [+] to add a line to the Exceptions table, and enter org.apache.camel.CamelException in the Exception field to handle the exceptions.
  11. Double-click the cProcessor component to display its Basic settings view in the Component tab.
  12. Customize the code in the Code area to show the message body:
    System.out.println(exchange.getIn());
  13. 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 – please let us know!