pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: Nico <nicohmail-postgresql@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: mysql/posgresql pooling
Date: Tue, 03 May 2005 10:43:39 -0700
Message-ID: <4277B84B.1040301@hogranch.com> (raw)
In-Reply-To: <d57s87$oth$1@news.hub.org>
References: <d57s87$oth$1@news.hub.org>

Nico wrote:
> Hi, I run a servlet that runs on a Resin 3.0.2-webserver with MySQL and 
> PostgreSQL database server.
> Operating system is Red Hat Enterprise Linux ES release 3 (Taroon Update 4). 
> Resin uses its own pooling mechanism. I can make normal connections through 
> both MySQL and PostgreSQL. However, when I try to get a connection from a 
> pool, only MySQL connections are returned. How do I tell my servlet it needs 
> a PostgreSQL connection instead of MySQL?

I dunno anything about that stuff specifically, but any time you're pooling 
resources, and you have different sorts of resources, it makes sense to have 
different pools.  In this case, it would be one pool for each database, so you 
query the specific pool holding the class of resource you want....




view thread (6+ messages)

Message-ID: <4277B84B.1040301@hogranch.com>
Permalink:  ../4277B84B.1040301@hogranch.com/
Also on:    postgresql.org/message-id/4277B84B.1040301@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, nicohmail-postgresql@yahoo.com
  Subject: Re: mysql/posgresql pooling
  In-Reply-To: <4277B84B.1040301@hogranch.com>
  References: <d57s87$oth$1@news.hub.org> <4277B84B.1040301@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