Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B7AB79A7B6F for ; Fri, 18 May 2012 09:48:38 -0300 (ADT) Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SVMbk-0004DD-Gs for pgsql-jdbc@postgresql.org; Fri, 18 May 2012 12:48:37 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4ICmNlu031187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 18 May 2012 08:48:23 -0400 Received: from localhost.localdomain (vpn-9-161.rdu.redhat.com [10.11.9.161]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q4ICmMdN002452 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 18 May 2012 08:48:22 -0400 Message-ID: <4FB64598.4090100@jboss.org> Date: Fri, 18 May 2012 08:50:32 -0400 From: Jesper Pedersen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Connection-fail-over References: <4FB52EBB.4060309@nitorcreations.com> <4FB5341B.8080206@enterprisedb.com> <4FB633B4.70700@nitorcreations.com> In-Reply-To: <4FB633B4.70700@nitorcreations.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Pg-Spam-Score: -6.9 (------) X-Archive-Number: 201205/63 X-Sequence-Number: 22963 On 05/18/2012 07:34 AM, Mikko Tiihonen wrote: > Thus, I believe that it would be useful to have simple failover support > in the jdbc driver. It is true that the application servers out there (we use to separate servers) support this functionality. However, I think that Mikko's suggestion is valid for applications that aren't backed by more advanced solutions. Maybe use special classes that extend the current ones (driver/datasource/...) that supports this functionality such that users can explicit choose to enable/disable it. Best regards, Jesper