From: Guillaume Cottenceau <gc@mnc.ch>
To: Assad Jarrahian <jarraa@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: an efficient way of checking if the connection to a db is actually open
Date: 16 Dec 2005 08:57:38 +0100
Message-ID: <87wti58oel.fsf@meuh.mnc.ch> (raw)
In-Reply-To: <4bd3e1480512151247u50479082vd08b9a1563d54604@mail.gmail.com>
References: <4bd3e1480512151247u50479082vd08b9a1563d54604@mail.gmail.com>
Assad Jarrahian <jarraa 'at' gmail.com> writes:
> Hi All,
> Trying to check if a connection is actually open every time I perform an
> operation (if not, I want to reopen it and perform that operation).
Why not performing the operation anyway, and when it fails
reopening the connection and retrying the operation?
Seems that it's the idea the JDBC designers had in mind, which
doesn't seem too stupid.
--
Guillaume Cottenceau
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: gc@mnc.ch, jarraa@gmail.com
Subject: Re: an efficient way of checking if the connection to a db is actually open
In-Reply-To: <87wti58oel.fsf@meuh.mnc.ch>
References: <4bd3e1480512151247u50479082vd08b9a1563d54604@mail.gmail.com> <87wti58oel.fsf@meuh.mnc.ch>
* 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