Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 7744 invoked from network); 6 Oct 2010 16:26:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Oct 2010 16:26:48 -0000 Received: (qmail 58184 invoked by uid 500); 6 Oct 2010 16:26:47 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 58113 invoked by uid 500); 6 Oct 2010 16:26:47 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 58078 invoked by uid 99); 6 Oct 2010 16:26:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 16:26:45 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 16:26:38 +0000 Received: by qwj8 with SMTP id 8so5325726qwj.30 for ; Wed, 06 Oct 2010 09:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=lK/3G+MAI5LyxNwYNv5DHAqy/J2WNOO6YLJWyZ99kew=; b=ciIBIpd346tGiGhvatuyiCF7ldwJ/+tT3aKi7oZETNk0+tqVJesofcwdMqWx3pm042 1XhWwE2iEPBp+T/n4oktLYKHXub/l42JVPvzAvaeYCZs428lL2gnjK+vQPVqolPUaBgB I6m7HGJlJcb1lUHjygQuXxCxuEKVJH5yiFFgE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TllJQyuXb9qAwH2s9VwxNukLEPtb6bWSyH/3PxTJY5E1DGbd8UfLfjYfT+LLyCeAtd usIOPMkQpxWFEe6Y01nP+cPD9pJj4yE3X46cCAqFaQWPkCLSVuPRRdrrYC7U5lTeUctM RbtqeAlb3FLFEwN+DFoWfzlLI1lHzRRnFSh0M= MIME-Version: 1.0 Received: by 10.224.11.140 with SMTP id t12mr9753020qat.314.1286382377428; Wed, 06 Oct 2010 09:26:17 -0700 (PDT) Received: by 10.229.230.213 with HTTP; Wed, 6 Oct 2010 09:26:17 -0700 (PDT) In-Reply-To: <570809781EAD03429084D2CD7FDB31ACD3A29F51@exsgmb32.apac.nsroot.net> References: <570809781EAD03429084D2CD7FDB31ACD3A29F51@exsgmb32.apac.nsroot.net> Date: Wed, 6 Oct 2010 17:26:17 +0100 Message-ID: Subject: Re: Validaity of Java.sql.connection's status in DBCP connection pool From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org This is really a question for the Commons User list: http://commons.apache.org/dbcp/mail-lists.html Please subscribe and ask there. On 6 October 2010 12:21, Varma, Sanjay wrote: > Hi Guys > > Have created a Java's DBCP connection pool using BasicDataSource each one= for primary and secondary databases. > > Can anybody please confirm/comment if say primary database or secondary d= atabase goes down at that time will the BasicDataSource still holds the DB = connections in the connection pool and if yes then the connections it has a= re they valid connection? > If Yes or No , which method of the BasicDataSource or Connection object = =A0method, can be used to know the validity of the Db connection ? > > Thanks in Advance > Sanjay > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org