Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 84114 invoked from network); 15 Sep 2006 07:55:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 07:55:33 -0000 Received: (qmail 48229 invoked by uid 500); 15 Sep 2006 07:55:33 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 48034 invoked by uid 500); 15 Sep 2006 07:55:33 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 48025 invoked by uid 99); 15 Sep 2006 07:55:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 00:55:33 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.82.231 as permitted sender) Received: from [66.249.82.231] (HELO wx-out-0506.google.com) (66.249.82.231) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 00:55:21 -0700 Received: by wx-out-0506.google.com with SMTP id i27so3031656wxd for ; Fri, 15 Sep 2006 00:54:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GKu8fMc+NFiDuNkPX9cEPIYYRH3XmPV13Gs53ZIqCoAAGQqrhVp0fCdtF9InGuKVmcV3O5wGYsPJqoUG4nIPARccevAllxQqrQ7AthQs9UwvAeeMR0tOB8rXO4bYSN2RIV1TYjSYnvx/Z9MgbalJPPE1+nhfMrJZX0lHQ7NLLh4= Received: by 10.90.94.2 with SMTP id r2mr3577503agb; Fri, 15 Sep 2006 00:54:54 -0700 (PDT) Received: by 10.90.86.4 with HTTP; Fri, 15 Sep 2006 00:54:54 -0700 (PDT) Message-ID: Date: Fri, 15 Sep 2006 08:54:54 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Connection pooling In-Reply-To: <6320689.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6309661.post@talk.nabble.com> <6313305.post@talk.nabble.com> <6320689.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/15/06, petera wrote: > James, > > I thought the session, producer and consumer objects were "lightweight" > objects > that take only a small amount of time to initialise ? Session, producer and consumer are lightweight in the sense that they dont' create a socket like a Connection does but they all cause network chatter with the broker when they are created & closed - so should not really be created on demand but rather be polled and reused http://incubator.apache.org/activemq/how-do-i-use-jms-efficiently.html -- James ------- http://radio.weblogs.com/0112098/