X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8094C5321F for ; Tue, 3 May 2005 14:44:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50740-01 for ; Tue, 3 May 2005 17:44:48 +0000 (GMT) Received: from hogranch.com (hogranch.com [66.117.128.240]) by svr1.postgresql.org (Postfix) with ESMTP id B07AB52A5B for ; Tue, 3 May 2005 14:44:46 -0300 (ADT) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id j43HhdE31383; Tue, 3 May 2005 10:43:39 -0700 Message-ID: <4277B84B.1040301@hogranch.com> Date: Tue, 03 May 2005 10:43:39 -0700 From: John R Pierce User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nico Cc: pgsql-jdbc@postgresql.org Subject: Re: mysql/posgresql pooling References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/12 X-Sequence-Number: 12843 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....