X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 65B3C52822 for ; Wed, 18 May 2005 07:22:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79527-05 for ; Wed, 18 May 2005 10:22:53 +0000 (GMT) Received: from bedrock.cromagnon.com (170-215-19-8.dsl1.mnd.mn.frontiernet.net [170.215.19.8]) by svr1.postgresql.org (Postfix) with ESMTP id 6CA9952808 for ; Wed, 18 May 2005 07:22:50 -0300 (ADT) Received: from dino.cromagnon.com (dino.cromagnon.com [206.223.39.6]) by bedrock.cromagnon.com (8.12.8/8.12.8) with ESMTP id j4IAMqCu015888 for ; Wed, 18 May 2005 05:22:52 -0500 From: Craig Servin To: pgsql-jdbc@postgresql.org Subject: Re: Questions on property values Date: Wed, 18 May 2005 05:22:51 -0500 User-Agent: KMail/1.8 References: <6A14D0A3-19F1-4FB0-8A79-D7DE5CDC2304@uni-konstanz.de> In-Reply-To: <6A14D0A3-19F1-4FB0-8A79-D7DE5CDC2304@uni-konstanz.de> X-MailKey: craigkey MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505180522.52317.cservin@cromagnon.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/85 X-Sequence-Number: 12916 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