pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Servin <cservin@cromagnon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Questions on property values
Date: Wed, 18 May 2005 05:22:51 -0500
Message-ID: <200505180522.52317.cservin@cromagnon.com> (raw)
In-Reply-To: <6A14D0A3-19F1-4FB0-8A79-D7DE5CDC2304@uni-konstanz.de>
References: <6A14D0A3-19F1-4FB0-8A79-D7DE5CDC2304@uni-konstanz.de>

When I have needed to do this I have used a dynamic proxy, using 
java.lang.reflect.Proxy, to extend Connection, Statement, and ResultSet.

This does not solve the problem at the driver level, but it does allow you a 
lot of control to decide when and how often  you re-try a query and when you 
need to re-open the connection.

You can also make it very database independent.

It does however incur some extra overhead.

Craig



view thread (3+ messages)  latest in thread

Message-ID: <200505180522.52317.cservin@cromagnon.com>
Permalink:  ../200505180522.52317.cservin@cromagnon.com/
Also on:    postgresql.org/message-id/200505180522.52317.cservin@cromagnon.com

 · 

reply

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: cservin@cromagnon.com
  Subject: Re: Questions on property values
  In-Reply-To: <200505180522.52317.cservin@cromagnon.com>
  References: <6A14D0A3-19F1-4FB0-8A79-D7DE5CDC2304@uni-konstanz.de> <200505180522.52317.cservin@cromagnon.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