X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 77B733A4763 for ; Thu, 28 Oct 2004 00:08:15 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46041-01 for ; Wed, 27 Oct 2004 23:08:05 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 52E813A46E1 for ; Thu, 28 Oct 2004 00:08:06 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CMwtV-0006X9-00; Thu, 28 Oct 2004 12:07:54 +1300 Message-ID: <41802A6D.10703@opencloud.com> Date: Thu, 28 Oct 2004 12:08:29 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (X11/20041021) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vadim Nasardinov Cc: pgsql-jdbc@postgresql.org Subject: Re: summary of new features in JDBC 3.0 References: <200410271623.44895@vadim.nasardinov> <4180101C.7090500@opencloud.com> <200410271855.03938@vadim.nasardinov> In-Reply-To: <200410271855.03938@vadim.nasardinov> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/289 X-Sequence-Number: 11394 Vadim Nasardinov wrote: > In addition to these, Section 11.7 "ConnectionPoolDataSource > Properties" (p. 78), defines these: > > TABLE 11-1 Standard Connection Pool Properties > > +------------------------------------------------------------------------+ > | Property Name | Type | Description | > |-----------------+------+-----------------------------------------------| > | maxStatements | int | The total number of statements that the pool | > | | | should keep open. 0 (zero) indicates that | > | | | caching of statements is disabled. | > |-----------------+------+-----------------------------------------------| > | initialPoolSize | int | The number of physical connections the pool | > | | | should contain when it is created | > |-----------------+------+-----------------------------------------------| > | minPoolSize | int | The number of physical connections the pool | > | | | should keep available at all times. 0 (zero) | > | | | indicates that connections should be created | > | | | as needed. | > |-----------------+------+-----------------------------------------------| > | maxPoolSize | int | The maximum number of physical connections | > | | | that the pool should contain. 0 (zero) | > | | | indicates no maximum size. | > |-----------------+------+-----------------------------------------------| > | maxIdleTime | int | The number of seconds that a physical | > | | | connection should remain unused in the pool | > | | | before the connection is closed. 0 (zero) | > | | | indicates no limit. | > |-----------------+------+-----------------------------------------------| > | propertyCycle | int | The interval, in seconds, that the pool | > | | | should wait before enforcing the current | > | | | policy defined by the values of the above | > | | | connection pool properties | > +------------------------------------------------------------------------+ I never understood why these properties were there. The ConnectionPoolDataSource does not own and manage the connection pool (despite the misleading name) -- it just provides the primitives so that a pooling implementation can be built on top of it -- so why do the properties live there? I wonder if it is a persistent typo in the spec, and those properties are actually meant to manage the statement pool, not the connection pool. That would make more sense since the statement pool lives entirely inside the datasource. As it is, maxStatements is the only one that makes any sort of sense.. -O