Hi
You need to route the message somewhere after the aggregate (eg it has
no children).
eg before .end() add something like (just routing to a log in this example)
.aggregate(...)
.to("log:somwhere).end();
On Mon, Jul 29, 2013 at 11:12 AM, jay <[email protected]> wrote:
> 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.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen