pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Custer <acuster@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Handling network errors during initial connection and ongoing use
Date: Tue, 17 Apr 2007 16:59:02 +0200
Message-ID: <1176821942.5522.32.camel@blackpad> (raw)

Hey all,

I'm working on fixing an application that uses jdbc so it will provide
users with a better understanding of what is wrong when things go wrong.
However, I cannot find any information on elegant ways to handle the
'unreliable' part of tcp/ip. 

Is there some common strategy to handle network errors during setup or
use of jdbc?

Specifically, I imagine all java applications using jdbc would have to
handle:
        during initial connection
                no network
                no dns
                host name unknown
                no answer on port
                answer on port not postgresql
                bad authentication 
                        (wrong username/password if these are distinct)
                user doesn't have permissions to read database
                
        during ongoing use
                network failure
                server failure

Could anyone point me toward documents/topic which cover these issues?

Thank you,
adrian custer
                





view thread (2+ messages)  latest in thread

Message-ID: <1176821942.5522.32.camel@blackpad>
Permalink:  ../1176821942.5522.32.camel@blackpad/
Also on:    postgresql.org/message-id/1176821942.5522.32.camel@blackpad

 · 

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: acuster@gmail.com
  Subject: Re: Handling network errors during initial connection and ongoing use
  In-Reply-To: <1176821942.5522.32.camel@blackpad>
  References: <1176821942.5522.32.camel@blackpad>

* 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