camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Aggregator to be pulled from the bean definition
Date Thu, 27 Jun 2013 07:38:02 GMT
Hi

Yeah you can use aggregationStrategyRef to refer to the bean id.

aggregate(header(CORRELATION_HEADER_KEY)).aggregationStrategyRef("xxxx")...

On Wed, Jun 26, 2013 at 5:57 PM, Jothi <codeintheopen@gmail.com> wrote:
> Guys,
>
> I have the following route:
>
> from("direct:aggregate").aggregate(header(CORRELATION_HEADER_KEY), new
> MyAggregationStrategy()).completionTimeout(3000).to(DIRECT_FINISH_AGGREGATE).routeId("myAggregator");
>
> I want this new MyAggregationStrategy() to be injected via a bean definition
> from my blueprint.xml. Is there a way to do this?
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Aggregator-to-be-pulled-from-the-bean-definition-tp5734826.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message