pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rob stone <floriparob@gmail.com>
To: Manoj Palhade <reply.manoj@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Database reset connection
Date: Wed, 30 Nov 2016 23:28:42 +1100
Message-ID: <1480508922.5197.0.camel@gmail.com> (raw)
In-Reply-To: <CADRBn6Ky-bEODYK=Qazk-rvyGh+4f_wci2UZByObLOHC0qHp2g@mail.gmail.com>
References: <CADRBn6Ky-bEODYK=Qazk-rvyGh+4f_wci2UZByObLOHC0qHp2g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>


On Wed, 2016-11-30 at 16:48 +0530, Manoj Palhade wrote:
> Hi,
> 
> I have Java class which implements the Database(Postgres) related
> functionality.
> 
> The problem is if Database stopped and then restart then My this
> class throws SQLException as connection got reset(database is up and
> running).
> 
> Is there any way that after Database restarted; my class
> automatically Connection to database and work as expected instead of
> throwing SQLException.
> 
> Is there anyway with Properties as a parameter to
> DriverManager.getConnection().
> 
> Thanks and Regards,
> 
> Manoj Palhade
> 





view thread (6+ messages)  latest in thread

Message-ID: <1480508922.5197.0.camel@gmail.com>
Permalink:  ../1480508922.5197.0.camel@gmail.com/
Also on:    postgresql.org/message-id/1480508922.5197.0.camel@gmail.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: floriparob@gmail.com, reply.manoj@gmail.com
  Subject: Re: Database reset connection
  In-Reply-To: <1480508922.5197.0.camel@gmail.com>
  References: <CADRBn6Ky-bEODYK=Qazk-rvyGh+4f_wci2UZByObLOHC0qHp2g@mail.gmail.com> <1480508922.5197.0.camel@gmail.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