Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 967889581 for ; Sun, 4 Mar 2012 20:50:12 +0000 (UTC) Received: (qmail 29167 invoked by uid 500); 4 Mar 2012 20:50:09 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29122 invoked by uid 500); 4 Mar 2012 20:50:09 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 29106 invoked by uid 99); 4 Mar 2012 20:50:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 20:50:09 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_REPLYTO,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.138.90.251] (HELO nm5-vm0.bullet.mail.ne1.yahoo.com) (98.138.90.251) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 04 Mar 2012 20:49:59 +0000 Received: from [98.138.90.53] by nm5.bullet.mail.ne1.yahoo.com with NNFMP; 04 Mar 2012 20:49:39 -0000 Received: from [98.138.89.172] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 04 Mar 2012 20:49:39 -0000 Received: from [127.0.0.1] by omp1028.mail.ne1.yahoo.com with NNFMP; 04 Mar 2012 20:49:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 44582.85192.bm@omp1028.mail.ne1.yahoo.com Received: (qmail 48943 invoked by uid 60001); 4 Mar 2012 20:49:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1330894178; bh=ySFVkVf/v9KwI+wLq0ptPBHhGgmup4AkR//sT5wfS2w=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=PY+efbfP7yDliaAGQs8nwOl9i+Jdsf89Udl3HL8CqFqkHnssiXhENijbtsKjv6f68bymSWkxRY18wJGjONnTUrSqBb/1ZQ0FC13qJUSH6mV3Bb4lKURlI4XQXq5wdntDhDWDyZOwyh9fp9WsGzKOQHnDAyCBo+5Nt+hUKkkGwiA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1JsewkGh1Hs22ZmawSPnmEUcC09gm1ZgDmwfgG0PCmM9yn9I1OGN7TsC25290D5ogS4Xy3zHnAj4WjghYV51XYGUoCCJHrMyEAycxYo/J6r1EtN1gn4u/nG1oWJnl6HHaLEKXyVjt4Sr+T+1XoecQoBHdDQmh9s0G1pGtvDxWso=; X-YMail-OSG: zmk0dPwVM1mRJtNj7Lr_j6TEE6vNyK6RSThOF2VaKgxBIMz aegm.djW.SR4iCYai7HpCf2_d4U2PLPjqgrdPsOwSbcQDs0xyHX.MjuHeC8K rwU2.g61x.a2apGSvgPBRI9EpiIS39Nu0GPUiNZACC4Pvw6deZVaJUxvK7hU _mX9IEnJuj8wpFCb2VbXA.i6R_jAOw_VcdCSv2qSRJX.27o0jwW.xlX9mMzg 92ieVJtIc4l7dsE82PrgmdnWozYIZQcnFPkR9sLAkPzkQa_sgzQAmC3iUrX5 LHFJIzSrzSHZz4QBQyyG13qWPCMyBLnhjP5rMiGK31vvCB7GPRMJB0pClTr8 YYKespf.WhWJ1IXe3Vffyf4_94JPj_FfvNqMd0ruUI9.YaYvt01CvRzPM8MA wERphqqFB3Qd5U.8SD8YFwAJv7lNDOhefLaybK3rew.5KgUXPJUv727GPs0M hV6Beqahp8C3btibsQ6WG3s0- Received: from [24.130.255.61] by web125802.mail.ne1.yahoo.com via HTTP; Sun, 04 Mar 2012 12:49:38 PST X-Mailer: YahooMailWebService/0.8.116.338427 References: <4F520F97.3050506@gmx.net> <4F5219AF.2050105@pidster.com> <99C8B2929B39C24493377AC7A121E21FB013E32BD3@USEA-EXCH8.na.uis.unisys.com> Message-ID: <1330894178.34573.YahooMailNeo@web125802.mail.ne1.yahoo.com> Date: Sun, 4 Mar 2012 12:49:38 -0800 (PST) From: Bob Hall Reply-To: Bob Hall Subject: Re: [Tomcat JDBC Pool] Close pooled connections via JMX To: Tomcat Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org =0A=0A=0A=0A________________________________=0AFrom: Brooke Hedrick =0ATo: Tomcat Users List =0A= Sent: Sunday, March 4, 2012 12:21 PM=0A=0A> On Mar 4, 2012, at 1:35 PM, Che= ma wrote:=0A>=A0=0A>>> We use Spring w/ Hibernate as= I recall.=A0 Yes, we have talked about that - a=0A>>> ping query.=A0 What = we don't like about that is now we have a tc ping and app=0A>>> ping.=A0 We= have also discussed just changing the tc borrow/ping to do the=0A>>> dual@= remotedb query as this would test both primary and remote.=A0 We have=0A>>>= tested this and it works.=A0 What stinks about this is we only access the= =0A>>> remotedb 10% of the time.=0A>> =0A>> Well, I don't know how works Hi= bernate , but I know that you can have=0A>> many SessionFactory=0A>> Can yo= u define different SessionFactory with different settings , for=0A>> exampl= e, with different pingQuery value?=0A>> Does Hibernate have a pingQuery set= ting ?=0A>>=0A>=A0=0A> Even if it does, are we actually losing the close() = method for the connection pool mbean?=A0 If so, why?=0A>=A0=0A> This change= would mean requiring many development teams to change many apps.=A0 I don'= t see the value of requiring that change - if it is actually the case we ar= e losing the close() method.=0A=0A=0AHave you tried defining views in the p= rimary database based on the @otherdb queries?=0A=0A- Bob --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org