I am about to modify camel based application by changing Processors onto
AsyncProcessors. I do not fully understand how exception handling route
should look like when route is consist of AsyncProcessors. Currently most of
code looks like this:
*Route parts*:

   
onException(MyException.class).handled(true).process(myExceptionHandlerProcessor);

    from(direct:myRoute).process(myBeanProcessor);

*myBeanProcessor*:

    @Component
    public class MyBeanProcessor implements Processor {

        @Override
        public void process(Exchange exchange) throws MyException { ... }

    }

Since AsyncProcessor "MUST not throw any exceptions that occurred while
processing the exchange", how exception route should looks like? Can someone
give me simple exmple of route with exception handling with AsyncProcessors?



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-should-look-like-exception-route-in-asynchronous-processing-tp5753776.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to