Hi,

what if you declare a general handling in a super class like :

public abstract class CommonHandler extends RouteBuilder {

 @Override public void configure() throws Exception {           
        
        // default Technical Exception handling
        onException(Exception.class)

          do your job

}

Then just define your route in one or several class which does extends
CommonHandler

like:

public class MyRouteDefinition extends CommonHandler {

@Override public void configure() throws Exception {

        super.configure();

        from(xxx).routeId(yyy).yourjob
}
}

Hopes it helps ...

Regards.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Handling-ConnectException-at-route-startup-tp5745762p5745780.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to