Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 2919 invoked from network); 23 Feb 2011 09:42:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 09:42:10 -0000 Received: (qmail 10584 invoked by uid 500); 23 Feb 2011 09:42:10 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 10176 invoked by uid 500); 23 Feb 2011 09:42:07 -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 10168 invoked by uid 99); 23 Feb 2011 09:42:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 09:42:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of iocanel@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 09:42:00 +0000 Received: by qyk36 with SMTP id 36so2906487qyk.11 for ; Wed, 23 Feb 2011 01:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=trhN5/CMXRoBMo8/w9K9I0DlQeCX1dW2KcnPB95DKHc=; b=NIrzvGV67UA4oBycsUWVoCB5uAQ2xYM6M9VDPtXpvgL0v3pC9UCNZJmlDCf8u93CO3 LY+f9/qt1GCS7U9ZEeDhcauiJGDWe8T+/HkvnAdA4s20TYPASdfA1eioMmDjWpLi6T3R 1TJ/QhTjXTD8qbjUl9g2oVP3i5HDTLzZxR+tE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=K0Fcg/AU1qsowaPAdD+qjsSpC+vivYaSDt5ouVl2gcVoNZ3eQLPQHRQj6W21YyMc6K JpYuTV1vMuDhI6Hmeh+fFwN1FOsSi1GTYe+ZPSiooneBY6ZjPAkPA5ofBf5Ijr+gXEZ1 PI2Ps8UFWhfzBSY3u1M8sohIqK+sqsYd6qEUc= MIME-Version: 1.0 Received: by 10.229.188.1 with SMTP id cy1mr2895466qcb.110.1298454099083; Wed, 23 Feb 2011 01:41:39 -0800 (PST) Received: by 10.229.112.25 with HTTP; Wed, 23 Feb 2011 01:41:39 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Feb 2011 11:41:39 +0200 Message-ID: Subject: Re: Producer Template and number of ActiveMQ Producers. From: Ioannis Canellos To: users@camel.apache.org Content-Type: multipart/alternative; boundary=0016e65da306554436049cefe711 X-Virus-Checked: Checked by ClamAV on apache.org --0016e65da306554436049cefe711 Content-Type: text/plain; charset=ISO-8859-1 Thanks for your response. I declared the template in the camel context, and injected it using spring's @Autowried / @Qualifier and I think it works (currently testing it). I guess that a similar thing happens to consumers to *(I use @Consume annotation on a method)*. Any ideas on how I could configure the cache size in this case? Thanks again On Wed, Feb 23, 2011 at 8:43 AM, Taariq Levack wrote: > Hi > > This is in the FAQ[1] > > In the first case the route is setup once and the template is created once. > How is @Produce used? If it's in a singleton it will also only be injected > once, > but I assume it's in a bean invocation. > > [1] Apache Camel: Why does Camel use too many threads with ProducerTemplate > < > http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html > > > > Taariq Levack > > -----Original Message----- > From: Ioannis Canellos [mailto:iocanel@gmail.com] > Sent: 22 February 2011 20:55 > To: users@camel.apache.org > Subject: Producer Template and number of ActiveMQ Producers. > > I am building an application that uses camel and activemq. > Some of my routes are defined using spring and I also make uses of the > @Produce annotations. > > I notice that on the when I add messages on an activemq queue using the > "to" > element a single producer is created on activemq. > When I add messages using the @Produce annotation I notice multiple > activemq producers. > > Are these two linked in any way? Can configure its behaviour somehow? > > Thanks in advance, > *Ioannis Canellos* > -- *Ioannis Canellos* http://iocanel.blogspot.com Integration Engineer @ Upstream S.A. --0016e65da306554436049cefe711--