Re: Connection Pool - Mailing list pgsql-general

From Craig Ringer
Subject Re: Connection Pool
Date
Msg-id 4CCFC365.1080203@postnewspapers.com.au
Whole thread Raw
In response to Connection Pool  (Jonathan Tripathy <jonnyt@abpni.co.uk>)
List pgsql-general
On 11/02/2010 01:42 AM, Jonathan Tripathy wrote:

> I would like my application to try and get a connection from the pool,
> and if there are none free, wait until either one is free or time is up.

Rather than rolling your own connection pool, consider using one of the
well-established existing ones like DBCP. Alternately, you can use the
pooling DataSource offered by the PostgreSQL driver, though it's pretty
minimal as well.

http://commons.apache.org/dbcp/

Alternately you could use server-side pooling with PgPool-II.

--
Craig Ringer

pgsql-general by date:

Previous
From: Jonathan Tripathy
Date:
Subject: Re: Replication
Next
From: Radosław Smogura
Date:
Subject: Re: JDBC Transactions