camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alex <alex.koe...@gmx.de>
Subject Reroute from onException Handler Processor
Date Thu, 16 Jan 2014 10:11:09 GMT
Dear All, 

I would like to know if there is a possibility to reroute from
onException-Handler Processor ?

from("direct:ROUTE_1")
    // Exception handling
        	.onException(Throwable.class)
        	.continued(true)
        	.process(new Processor() {
        		@Override
				public void process(Exchange exchange) throws Exception {
        			Exception ex = exchange.getProperty(Exchange.EXCEPTION_CAUGHT,
Exception.class);					
          // HOW DO I REROUTE TO ROUTE_3 HERE ?????
				}
        	})	        
				.to("direct:errorMail")
			.end()  
			// - Exception handling
			...
			to(direct:ROUTE_2);
			
			
from("direct:ROUTE_2")
  // do something
to(...)


from("direct:ROUTE_3")
  // do something special
to(...)

Thank you very much!!!

Best regards
Alex



--
View this message in context: http://camel.465427.n5.nabble.com/Reroute-from-onException-Handler-Processor-tp5746043.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message