Hi- I am getting the following error when i run the aggregartor in main
method;



Exception in thread "main" org.apache.camel.FailedToCreateRouteException:
Failed to create route route1 at: >>> Aggregate[header{ABC} -> []] <<< in
route: Route[[From[activemq:inMessages]] -> [Aggregate[header{ABC} ...
because of Definition has no children on Aggregate[header{ABC} -> []]
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:879)
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
        at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:722)
        at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1789)


My Simple main method:

 main = new Main();
       
        main.enableHangupSupport();
        main.addRouteBuilder(new MyRouteBuilder());
        
        main.run();
***************************

My Route Class :

private static class MyRouteBuilder extends RouteBuilder {
        @Override
        public void configure() throws Exception {
            from("activemq:inMessages")
             .aggregate(header("ABC"), new NFUMClaimAggregator())
                .completionTimeout(getAggregationTimeout()).end();
              
        }
        
    }

Aggregation Route Class is the same as in my previous email:




--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Unable-to-instantiate-the-aggregation-route-Error-in-Camel-2-10-4-tp5717416p5717431.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to