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 23E57D88E for ; Sat, 1 Dec 2012 11:51:15 +0000 (UTC) Received: (qmail 67522 invoked by uid 500); 1 Dec 2012 11:51:14 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 67494 invoked by uid 500); 1 Dec 2012 11:51:14 -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 67469 invoked by uid 99); 1 Dec 2012 11:51:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 11:51:13 +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 (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-la0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 11:51:08 +0000 Received: by mail-la0-f45.google.com with SMTP id p9so1237670laa.32 for ; Sat, 01 Dec 2012 03:50:47 -0800 (PST) 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=V3Co4cdNDcyn7uTv3Fd64GDTXGtWcVsvXuI7hCFfOQY=; b=eS6D7gLbkTX3QHPogDKJ77K7r5blg39+Uac2Fq+6b0b7iyFISRTiciPE38TnI2NwSr 0yiXTpZNU022FdFUvD1DkNtFgJHZeEFucYTVfTG40K9ZTtiLdSmARPN8GyfTX2bM28MI 7Kg0A83k4nzAWlTzqbNHU3/CvFwgYOHBlSwHE0RzsBECpIZKQ7goUwBi/1i/rHSgs4Hk dACVClYt2XIZL8dWPX6LAOiqITTlgOB8qIAKjA/zzl3o1siaFPG9zlW7SE7Am0aseqjA +3UirKX+hFbUPq58c9JQ+KR17hsYDZnYRRKRRciTcuvo1AFoNIC+7UBmsiDIz57nfnml jePg== Received: by 10.112.25.161 with SMTP id d1mr2036894lbg.118.1354362647478; Sat, 01 Dec 2012 03:50:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.103.129 with HTTP; Sat, 1 Dec 2012 03:50:27 -0800 (PST) In-Reply-To: <1354294901783-5723464.post@n5.nabble.com> References: <1354294901783-5723464.post@n5.nabble.com> From: Claus Ibsen Date: Sat, 1 Dec 2012 12:50:27 +0100 Message-ID: Subject: Re: Singleton Endpoint Question 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 30, 2012 at 6:01 PM, gilboy wrote: > Hi > > If an endpoint is defined to be a singleton and you have 2 camel routes both > referencing the same endpoint URI, will camel call endpoint.createConsumer() > once or twice? > Twice. Each route needs their own consumer, so createConsumer is always invoked. If the endpoint is singleton, then they use the same instance of the endpoint. If the endpoint is not singleton, then a new endpoint instance is always created when needed. > Thanks > Joe > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Singleton-Endpoint-Question-tp5723464.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- 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