Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4455ED7CF for ; Thu, 30 Aug 2012 08:37:00 +0000 (UTC) Received: (qmail 64374 invoked by uid 500); 30 Aug 2012 08:36:59 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 64112 invoked by uid 500); 30 Aug 2012 08:36:59 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 64098 invoked by uid 99); 30 Aug 2012 08:36:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 08:36:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lb0-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 08:36:55 +0000 Received: by lbol12 with SMTP id l12so329980lbo.2 for ; Thu, 30 Aug 2012 01:36:33 -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=u/IByu1b5luaQcxA6f4daGxbLgrPhS49OhnOwo3cDT4=; b=KVoE4HmSkF+bUabSQwzDXsLSmO76nYRDWe0gyynI//a5tlPA34n0jg6jYacfwzLPQt NDY5hQqTi7QA86ylba/qRT8dy33+KZBs6ipXa6RZXq5frgK2fksdf2eD3eM5CuFtf0br C1wQ8Gn1SlI/LAp9gj1pyPH3gMJBUjvANT10VQFNr7iyDAWh7iZEclIOm+sveeZa5wL4 6JZ+SYbjeF/gQYiQsu3DI8qMtw2xj94d6cKI96LVkfzelmLP4mwhspqVoYvSIZ69jVSN d6BzCROvCU0iYRUqlCiUKj62XAERujLILZ2SLkYigP9mAqOAg+LbzeiUOTRrZ0pVMwaH OZTg== Received: by 10.152.106.139 with SMTP id gu11mr2486072lab.57.1346315793520; Thu, 30 Aug 2012 01:36:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Thu, 30 Aug 2012 01:36:13 -0700 (PDT) In-Reply-To: <1346250031.2689.3.camel@OfficePC> References: <1346250031.2689.3.camel@OfficePC> From: Claus Ibsen Date: Thu, 30 Aug 2012 10:36:13 +0200 Message-ID: Subject: Re: [DISCUSS] activemq-pool - Suggest to name maximumActive option maximumActiveSessionPerConnection To: dev@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi I created a ticket to track this https://issues.apache.org/jira/browse/AMQ-4004 On Wed, Aug 29, 2012 at 4:20 PM, Timothy Bish wrote: > +1 > > On Wed, 2012-08-29 at 13:19 +0200, Claus Ibsen wrote: >> Hi >> >> The activemq-pool is a connection pool for AMQ, that clients can use. >> And therefore end-users need to configure the pool for their needs. >> >> The main configuration is the org.apache.activemq.pool.PooledConnectionFactory >> because its a javax.jms.ConnectionFactory, which is an API from JMS >> which clients need to use to get a connection, and then go from there. >> >> In the source code of org.apache.activemq.pool.PooledConnectionFactory >> it has a number of options. >> One of these is >> private int maximumActive = 500; >> >> /** >> * Sets the maximum number of active sessions per connection >> */ >> public void setMaximumActive(int maximumActive) { >> this.maximumActive = maximumActive; >> } >> >> >> At first thought without reading the javadoc, you may think as I its a >> option for maximum active *connections*. But it is not, its for >> sessions per connection. >> >> The default values are >> private int maximumActive = 500; >> private int maxConnections = 1; >> >> So that mean we have 1 connection, and that given connection can have >> 500 sessions, where these session would then share the same >> connection. >> >> >> What if we named that option *maximumActiveSessionPerConnection*, then >> people would not make that mistake, thinking its for controlling the >> maximum active connections. >> >> We could add that as a new option, and keep the old option, and mark >> it as @deprecated. Then we are backwards compatible. >> >> >> Any thoughts? >> >> > > -- > Tim Bish > Sr Software Engineer | FuseSource Corp > tim.bish@fusesource.com | www.fusesource.com > skype: tabish121 | twitter: @tabish121 > blog: http://timbish.blogspot.com/ > -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen