Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 41237 invoked from network); 20 Nov 2010 11:27:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 11:27:54 -0000 Received: (qmail 95957 invoked by uid 500); 20 Nov 2010 11:28:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 95867 invoked by uid 500); 20 Nov 2010 11:28:26 -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 95854 invoked by uid 99); 20 Nov 2010 11:28:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 11:28:25 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 11:28:19 +0000 Received: by qyk34 with SMTP id 34so538450qyk.11 for ; Sat, 20 Nov 2010 03:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=JxkRxTDWwvMa3BUo1eN4MRYPrLTrn3mzuvwqu14s7NI=; b=tNtosrINnFDN8H2wzPOn+M0JqcEKAro77+PNn/YPOq8Wcgmgr5olRUXw7PKXCQ1eLh yrKmo6BxoW7Qp9XZLbLrXtKcfyq8TVUF77oMhgwwIjipp42WIXG/M98K0v1ZJ+VS9SKB yoyswCkFyXZINUcYBCqU4WljwjxHxQ/NXALLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=nXT6yrmzbxREiDuySevA8G1GQ2TDRRbc5YGFHn6jfZ1UGyVBhuy2Y1e92tSwUo/X33 z1cbM1ql7Ejnzw6U3rzotiRzHYP6tewkGuHAtKMhdQbMl8YoXPHPnXQ2yq2UGEo9+Zhc LM4P4FUhSf2DYy1NAwuaHmM2R5aCElWJjsTdQ= Received: by 10.229.81.148 with SMTP id x20mr2849589qck.18.1290252478234; Sat, 20 Nov 2010 03:27:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.225.15 with HTTP; Sat, 20 Nov 2010 03:27:38 -0800 (PST) In-Reply-To: <1290162819329-3272140.post@n5.nabble.com> References: <1290162819329-3272140.post@n5.nabble.com> From: Claus Ibsen Date: Sat, 20 Nov 2010 12:27:38 +0100 Message-ID: Subject: Re: What happens when using same AggregationStrategy in multiple routes? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Nov 19, 2010 at 11:33 AM, Andreas A. wrote: > > Hi > > I have a two routes that use the same AggregationStrategy, and I'm loading > the AggregationStrategy as a Spring bean (which is a singleton). If the two > routes run simultaneously can the messages be mixed up? Should I load the > bean as prototype, or is this taken care of by Camel somehow? > -- You are only in trouble if the strategy stores state and thus is not thread safe. > View this message in context: http://camel.465427.n5.nabble.com/What-happens-when-using-same-AggregationStrategy-in-multiple-routes-tp3272140p3272140.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/