From: Oliver Jowett <oliver@opencloud.com>
To: Markus Riehl <mriehl@skat.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: No automatic reconnect after network error
Date: Wed, 12 Apr 2006 17:02:41 +1200
Message-ID: <443C89F1.2050801@opencloud.com> (raw)
In-Reply-To: <000f01c65de4$2cd8a500$15b2a8c0@pcmar02>
References: <000f01c65de4$2cd8a500$15b2a8c0@pcmar02>
Markus Riehl wrote:
> I think this means that the PostgreSQL JDBC driver doesn't support automatic
> reconnection. And I don't see this feature on the Roadmap. Is it unusual to
> use PostgreSQL in a multi server environment?
It's unusual to have JDBC drivers automatically reconnect. I could see
an argument for it if you could guarantee that the reconnection was
invisible to the user .. but that's not the case here.
The JDBC spec's Connection lifecycle seems to be aimed at a 1:1 mapping
to real physical connections, anyway. Once it's closed for whatever
reason, a Connection stays closed. If you want to do more work, you need
to get a new Connection.
-O
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: oliver@opencloud.com, mriehl@skat.com
Subject: Re: No automatic reconnect after network error
In-Reply-To: <443C89F1.2050801@opencloud.com>
References: <000f01c65de4$2cd8a500$15b2a8c0@pcmar02> <443C89F1.2050801@opencloud.com>
* 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