Re: connection pool and reconnect to database

From: Kris Jurka <books(at)ejurka(dot)com>
To: Morus Walter <morus(dot)walter(at)tanto(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: connection pool and reconnect to database
Date: 2004-12-13 15:00:11
Message-ID: Pine.BSO.4.56.0412130958420.30161@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 13 Dec 2004, Morus Walter wrote:

> I'm currently working on the migration of an application from oracle to
> postgresql.
>
> I'm using a org.postgresql.jdbc3.Jdbc3PoolingDataSource to manage the
> connections.
>
> Everything works find, except that I'm forced to restart the application
> whenever the postgresql server is restarted.
>
> Since the application is server based (running inside tomcat) and runs
> on a different server this introduces additional dependencies I'd prefer
> to avoid.
>
> Is there any way to have the connection pool detect the case of broken
> database connections and try to create new ones?
> How do others handle this issue?
>

The connection pool that comes with the driver is not very featureful and
it's a better idea to use a third party pool from jakarta or elsewhere.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-12-13 15:04:24 Re: Bug in b01
Previous Message rkrueger 2004-12-13 14:40:44 Bug in b01