Re: How can I close an org.postgresql.jdbc3.Jdbc3ConnectionPool

From: Kris Jurka <books(at)ejurka(dot)com>
To: Alex Thecate <alexthecate(at)hotmail(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: How can I close an org.postgresql.jdbc3.Jdbc3ConnectionPool
Date: 2004-02-01 12:17:17
Message-ID: Pine.LNX.4.33.0402010713300.19128-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Sat, 31 Jan 2004, Alex Thecate wrote:

> Hi - I would like to be able to explicity and truly close all connections in
> an org.postgresql.jdbc3.Jdbc3ConnectionPool but can find no way to do this.
>
> The pool's clients do the appropriate close() on a connection when it is no
> longer needed, which as i understand just puts that connection back into the
> pool of available connections.
>
> When the entire application itself is complete, can I explicity close the
> pool and thus really really close the connections to the database?
>

Jdbc3ConnectionPool is not actually a pool despite its name. It is just a
means of creating connections which can be pooled by external code. So
once it creates a connection it does not track it. You are probably
looking for Jdbc3PoolingDataSource which has the desired close method.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-02-01 12:30:18 Re: About Postgres Large Object
Previous Message Jean-Pierre Matsumoto 2004-02-01 12:07:36 Re: FW: [webmaster] jdbc site: documentation links broken