From: Craig Ringer <craig@postnewspapers.com.au>
To: Benjamin.Galaviz@LSGSkyChefs.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PGPoolingDataSource problem.
Date: Thu, 09 Jun 2011 12:07:32 +0800
Message-ID: <4DF04704.8070604@postnewspapers.com.au> (raw)
In-Reply-To: <E2435754E1952542B9E77BDDC3E83942076D9EA7@sw-adclsg-mbx01.americas.lsgsc.com>
References: <E2435754E1952542B9E77BDDC3E83942076D9EA7@sw-adclsg-mbx01.americas.lsgsc.com>
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
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: craig@postnewspapers.com.au, Benjamin.Galaviz@LSGSkyChefs.com
Subject: Re: PGPoolingDataSource problem.
In-Reply-To: <4DF04704.8070604@postnewspapers.com.au>
References: <E2435754E1952542B9E77BDDC3E83942076D9EA7@sw-adclsg-mbx01.americas.lsgsc.com> <4DF04704.8070604@postnewspapers.com.au>
* 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