Hi

Yes, using the onException clause you could make use of continued(true).
Also take a look at [1] for the semantics of "handled" & "continued" DSL
elements.

One possible way would be:

                onException(MyIgnoredException.class).process(new
Processor() {
                    @Override
                    public void process(Exchange exchange) throws Exception
{
                       Exception exception =
exchange.getProperty(Exchange.EXCEPTION_CAUGHT, Exception.class);               
        
                       String message = exception.getMessage();
                      
                      // now do whatever you want with the exception
message...
                    }
                }).continued(true);


[1] http://camel.apache.org/exception-clause.html

Babak

--
View this message in context: 
http://camel.465427.n5.nabble.com/Dynamic-router-EIP-and-Eceptions-tp5526894p5527400.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to