camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serge Smertin (JIRA)" <>
Subject [jira] [Created] (CAMEL-7786) Global exception handling breaks routeId
Date Fri, 05 Sep 2014 18:30:28 GMT
Serge Smertin created CAMEL-7786:

             Summary: Global exception handling breaks routeId
                 Key: CAMEL-7786
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.12.0
            Reporter: Serge Smertin

This is somehow related to CAMEL-2109. Using Java DSL and code like


/// later doing

context.getRouteDefinition("triggerDoingSomething").adviceWith(context, new AdviceWithRouteBuilder()
                public void configure() throws Exception {
                    weaveAddFirst().process(new Processor() {
                        public void process(Exchange exchange) throws Exception {

does not work, as {code}OnException[[class java.lang.Error] -> [To[errorChannel]]]{code}
has no parent and `AdviseWithTask` never gets `match = true` in a loop. I guess it would not
even work with multiple OnException definitions.

workaround? `weaveByType(OnExceptionDefinition.class)`? Ideas? Is it the right use of route

This message was sent by Atlassian JIRA

View raw message