Skip to main content Skip to complementary content

Viewing code and executing the Route

Procedure

  1. Click the Code tab at the bottom of the design workspace to check the generated code.
    As shown above, Ignore_exception handles any IO exception thrown by .bean(beans.throwIOException.class) invoked by cBean_1, so that messages from the endpoint Source can be successfully routed onwards (continued(true)) in spite of the exception.
  2. Press F6 to execute the Route.
    The route gets executed successfully and the files from the source are successfully routed to the destination.
  3. Change the exception handling option in the cOnException component or deactivate the component and run the Route again.
    The exception thrown by the Java bean prevents the messages from being routed successfully.

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!