pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: David Hustace <david@opennms.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Socket read fails
Date: Thu, 26 Jan 2006 08:06:17 -0500
Message-ID: <67FF4559-50FF-4E3D-905B-56A16EB11542@fastcrypt.com> (raw)
In-Reply-To: <AA18C0DC-A401-4692-A85A-ECA06D789084@opennms.org>
References: <84d3067d0601151935l581b07f1nfa231483a900518f@mail.gmail.com>
	<84d3067d0601242203w6cef6a9dt90fb8c45c55b2798@mail.gmail.com>
	<A174A100-FBCC-4513-8D5F-0FF5C2AF961B@opennms.org>
	<43D7F7C0.20501@opencloud.com>
	<9536F7D5-F299-42A9-8A24-5B6A99352FD3@opennms.org>
	<43D80A00.2070505@opencloud.com>
	<AA18C0DC-A401-4692-A85A-ECA06D789084@opennms.org>

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
>




view thread (8+ messages)

Message-ID: <67FF4559-50FF-4E3D-905B-56A16EB11542@fastcrypt.com>
Permalink:  ../67FF4559-50FF-4E3D-905B-56A16EB11542@fastcrypt.com/
Also on:    postgresql.org/message-id/67FF4559-50FF-4E3D-905B-56A16EB11542@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, david@opennms.org
  Subject: Re: Socket read fails
  In-Reply-To: <67FF4559-50FF-4E3D-905B-56A16EB11542@fastcrypt.com>
  References: <84d3067d0601151935l581b07f1nfa231483a900518f@mail.gmail.com> <84d3067d0601242203w6cef6a9dt90fb8c45c55b2798@mail.gmail.com> <A174A100-FBCC-4513-8D5F-0FF5C2AF961B@opennms.org> <43D7F7C0.20501@opencloud.com> <9536F7D5-F299-42A9-8A24-5B6A99352FD3@opennms.org> <43D80A00.2070505@opencloud.com> <AA18C0DC-A401-4692-A85A-ECA06D789084@opennms.org> <67FF4559-50FF-4E3D-905B-56A16EB11542@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox