Skip site navigation (1) Skip section navigation (2)

How can I close an org.postgresql.jdbc3.Jdbc3ConnectionPool ?

From: "Alex Thecate" <alexthecate(at)hotmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: How can I close an org.postgresql.jdbc3.Jdbc3ConnectionPool ?
Date: 2004-01-31 21:18:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
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?

As it stands now, my application simply terminates which although i assume 
closes the connections implicitly, currently generates the following log 

WARNING:  ROLLBACK:  no transaction in progress
LOG:  pq_recvbuf : unexpected EOF on client connection

Thanks for any advice -

Check out the coupons and bargains on MSN Offers!


pgsql-jdbc by date

Next:From: Nic FerrierDate: 2004-01-31 22:18:06
Subject: Re: CallableStatement support?
Previous:From: Dave CramerDate: 2004-01-31 20:24:47
Subject: Re: a little disillusioned

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group