Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 775FC10C8C for ; Thu, 27 Jun 2013 07:38:49 +0000 (UTC) Received: (qmail 30095 invoked by uid 500); 27 Jun 2013 07:38:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 29794 invoked by uid 500); 27 Jun 2013 07:38:48 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 29782 invoked by uid 99); 27 Jun 2013 07:38:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 07:38:47 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.178 as permitted sender) Received: from [209.85.223.178] (HELO mail-ie0-f178.google.com) (209.85.223.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 07:38:43 +0000 Received: by mail-ie0-f178.google.com with SMTP id u16so927320iet.9 for ; Thu, 27 Jun 2013 00:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dozypL2U5h3C+4RGT+pqMOjmu19PQHrHZUciVq9xGzo=; b=YkMxVndhqJocF2StrUVGwkrQgRyiloCJFlBJSzYb8mLctT1vPwH53rIYLal/u3Hthg ttucqXffBvW25aD+qrr0MWieTpd5csFVrQDlCoBj26zB4VzYbJBG6PqD2RTis8VU3A6c sWpjzljOZEdlPxoXEEO8lMQQgz9Ns9i+fMf8uAEb5dN1VRpMR+Jvw8qsknT9gAFVpJD1 bclqccln4WeOFF9fSca06ZZB+6DLNVtn+cJEsUfUmiRVo++26++zfSMRyhds8DLAUIm2 vPzRZWiBfgxaXnPAJk7N8pgdIR2ZLr0ZsPKQgiLIVOC5e+hl8jtGl5yhm2abWknvz/KQ J7Cg== X-Received: by 10.50.107.65 with SMTP id ha1mr5121129igb.50.1372318702815; Thu, 27 Jun 2013 00:38:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.86.233 with HTTP; Thu, 27 Jun 2013 00:38:02 -0700 (PDT) In-Reply-To: <1372262232568-5734826.post@n5.nabble.com> References: <1372262232568-5734826.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 27 Jun 2013 09:38:02 +0200 Message-ID: Subject: Re: Aggregator to be pulled from the bean definition To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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 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