Procedure
-
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 bycBean_1
, so that messagesfrom
the endpointSource
can be successfully routed onwards (continued(true)
) in spite of the exception. -
Press F6 to execute the Route.
The route gets executed successfully and the files from the source are successfully routed to the destination.
-
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.