pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Failover Datasource?
Date: Thu, 16 Jun 2011 19:02:32 -0700
Message-ID: <4DFAB5B8.5010603@hogranch.com> (raw)
In-Reply-To: <4DFAB403.5010309@acm.org>
References: <4DFA5A86.9030301@acm.org>
	<itdn5g$eu7$1@dough.gmane.org>
	<4DFA671F.2050005@acm.org>
	<4DFA9704.4000209@hogranch.com>
	<4DFAB403.5010309@acm.org>

On 06/16/11 6:55 PM, Bruce Adams wrote:
> In principal, I agree; in practice, that's not the way it's been done 
> in the Java application server world.
>
> I have two readily available Java database connection pool 
> implementations available: the one bundled with Apache Tomcat and 
> Hibernate's c3p0. Neither of these directly support failover. They 
> each expect the lower level JDBC driver to deal with failover. (This 
> is true of BEA WebLogic and IBM WebSphere as well, at least as of a 
> few years ago when I last used them intensely.)
>
> What I'm looking for is very standard stuff in the Java application 
> server world. The JDBC driver handles failover and/or load balancing 
> to multiple backend database servers.

it just seems to me that the individual client drivers shouldn't be what 
is tracking the state of the server cluster.    I can't imagine the 
driver layer could do more than 'try connecting to server 1, if that 
fails, try server 2'...  if server 1 is dead and not responding, this is 
going to be painfully slow and result in minute long TCP connection 
timeouts on each connect.

Do oracle jdbc drivers support this multiple-server notation, same as 
shown here earlier for mysql?

-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast




view thread (13+ messages)  latest in thread

Message-ID: <4DFAB5B8.5010603@hogranch.com>
Permalink:  ../4DFAB5B8.5010603@hogranch.com/
Also on:    postgresql.org/message-id/4DFAB5B8.5010603@hogranch.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: pierce@hogranch.com
  Subject: Re: Failover Datasource?
  In-Reply-To: <4DFAB5B8.5010603@hogranch.com>
  References: <4DFA5A86.9030301@acm.org> <itdn5g$eu7$1@dough.gmane.org> <4DFA671F.2050005@acm.org> <4DFA9704.4000209@hogranch.com> <4DFAB403.5010309@acm.org> <4DFAB5B8.5010603@hogranch.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