Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8D55BB5D8B2 for ; Thu, 9 Jun 2011 01:07:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 68839-04 for ; Thu, 9 Jun 2011 04:07:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 5EDE2B5D832 for ; Thu, 9 Jun 2011 01:07:35 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id D884710D; Thu, 9 Jun 2011 00:07:34 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CG6vG0aQjoID; Thu, 9 Jun 2011 00:07:34 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id E91AA2D; Thu, 9 Jun 2011 00:07:33 -0400 (EDT) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id E89BBAE3CA; Thu, 9 Jun 2011 12:07:32 +0800 (WST) Message-ID: <4DF04704.8070604@postnewspapers.com.au> Date: Thu, 09 Jun 2011 12:07:32 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Thunderbird/3.1.9 MIME-Version: 1.0 To: Benjamin.Galaviz@LSGSkyChefs.com CC: pgsql-jdbc@postgresql.org Subject: Re: PGPoolingDataSource problem. References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/17 X-Sequence-Number: 21941 On 09/06/11 01:36, Benjamin.Galaviz@LSGSkyChefs.com wrote: > I am using the JDBC3 PGPoolingDataSource to create a pool of 5 > connections (for test) to my database. I'd recommend using a proper connection pool like C3P0 or DBCP. It'll be less work in the long run, as PGPoolingDataSource is more of a toy/testing tool. What's your environment, anyway? Are you running in a standalone JVM (j2SE) or in an application server context? If you're in an appserver or servlet container you should be getting connections from the container environment. -- Craig Ringer