Re: How to retry when connection has been closed?

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Herouth Maoz <herouth(at)unicell(dot)co(dot)il>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: How to retry when connection has been closed?
Date: 2009-08-02 22:20:47
Message-ID: 4A76113F.8020101@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Herouth Maoz wrote:

> Is there a more elegant way to find out whether the connection has been
> dropped from within the catch clause?

Test the SQLState of the thrown SQLException. See
http://www.postgresql.org/docs/8.4/static/errcodes-appendix.html

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2009-08-03 17:44:26 Re: Datatype of domains not reported correctly.
Previous Message Herouth Maoz 2009-08-02 09:12:55 How to retry when connection has been closed?