Procedure
-
Double-click the cTimer component to
open its Basic settings view in the
Component tab.
- Enter 1 in the Repeat field to trigger a message exchange one time.
-
Double-click the cSetBody component
to display its Basic settings view in
the Component tab.
- Select Simple from the Language list and enter Hello! in the Expression field.
-
Double-click the cTalendJob component
to display its Basic settings view in
the Component tab.
- Select Job RouteCommunication_tRouteFault from the repository to call the Job that is created in the previous section.
-
Double-click the cOnException
component to display its Basic settings
view in the Component tab.
- Click [+] to add a line to the Exceptions table, and enter org.apache.camel.CamelException in the Exception field to handle the exceptions.
-
Double-click the cProcessor component
to display its Basic settings view in
the Component tab.
-
Customize the code in the Code area
to show the message body:
System.out.println(exchange.getIn());
- Press Ctrl+S to save your Route.