X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 35A389DC811 for ; Thu, 26 Jan 2006 09:06:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87038-05 for ; Thu, 26 Jan 2006 09:06:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 343849DC809 for ; Thu, 26 Jan 2006 09:06:17 -0400 (AST) Received: (qmail 8802 invoked from network); 26 Jan 2006 13:06:21 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 26 Jan 2006 13:06:21 -0000 In-Reply-To: References: <84d3067d0601151935l581b07f1nfa231483a900518f@mail.gmail.com> <84d3067d0601242203w6cef6a9dt90fb8c45c55b2798@mail.gmail.com> <43D7F7C0.20501@opencloud.com> <9536F7D5-F299-42A9-8A24-5B6A99352FD3@opennms.org> <43D80A00.2070505@opencloud.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <67FF4559-50FF-4E3D-905B-56A16EB11542@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Socket read fails Date: Thu, 26 Jan 2006 08:06:17 -0500 To: David Hustace X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200601/124 X-Sequence-Number: 14575 David, A much more robust pooling mechanism is dbcp from apache http://jakarta.apache.org/commons/dbcp/ Dave On 25-Jan-06, at 8:18 PM, David Hustace wrote: > > On Jan 25, 2006, at 6:30 PM, Oliver Jowett wrote: > >> It does not change the state of the datasource and just delegates >> to DriverManager to do the real work, so it should be threadsafe. > > Ah. I just saw that. in BasicDataSource.java. Thanks for your > help. I guess I need improve my connection caching to try and > remove stale connections or switch to another implementation. > Anyone have production experience with SmartPool and a PostgreSQL > driver? http://smartpool.sourceforge.net/ It looks pretty good so > far. I guess I should search the list before asking this question. > (duck) > > -David > > > David Hustace > The OpenNMS Group, Inc. > Main : +1 919 545 2553 Fax: +1 503-961-7746 > Direct: +1 919 827 1201 Skype: dhustace > Key Fingerprint: 8EC1 F319 2C1D 3197 AAB9 580F FACD 1D19 175E D903 > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: explain analyze is your friend >