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 B12E6964B for ; Mon, 5 Mar 2012 21:07:14 +0000 (UTC) Received: (qmail 83104 invoked by uid 500); 5 Mar 2012 21:07:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 82902 invoked by uid 500); 5 Mar 2012 21:07:11 -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 82892 invoked by uid 99); 5 Mar 2012 21:07:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 21:07:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of demablogia@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-iy0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 21:07:03 +0000 Received: by iafj26 with SMTP id j26so8086565iaf.18 for ; Mon, 05 Mar 2012 13:06:42 -0800 (PST) Received-SPF: pass (google.com: domain of demablogia@gmail.com designates 10.50.181.199 as permitted sender) client-ip=10.50.181.199; Authentication-Results: mr.google.com; spf=pass (google.com: domain of demablogia@gmail.com designates 10.50.181.199 as permitted sender) smtp.mail=demablogia@gmail.com; dkim=pass header.i=demablogia@gmail.com Received: from mr.google.com ([10.50.181.199]) by 10.50.181.199 with SMTP id dy7mr8133988igc.57.1330981602795 (num_hops = 1); Mon, 05 Mar 2012 13:06:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=xooPwWedrFjUZvaVl/GeKjD7tvAktP6jl8wMe54zQaA=; b=oRJZCxL2doyXX6A0sBWOiKmMUIyFkC289rcfZTxTWFN5NuKCfGNW1VsA041eEwZpwB IG+jks5QkelPLUWeqyj2wYH1+6fhQdZymUZ1/oYsDWqjv/xWYZoK0tfbsU8kX5gTCGrf jHWBExPgCnl7rFG2fpHa+K2PsSUaUAdpH7avxLB2ef9nI8of57ayzvjk9uiwp3+lZMV0 U6pmcz2HOorJEYw3wfuo1VdEExFx7DGfZX3cqO8E7xbavo4q97s0giofWIhZHZZE9c/z /L7pnNZ55rFcASW1jAnZ3vWSIpXlU5Uk9aLweXdLqWn0JZcmAtt45ewCuYrJi5urpJ3m 3Txg== Received: by 10.50.181.199 with SMTP id dy7mr6754496igc.57.1330981602754; Mon, 05 Mar 2012 13:06:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.92.2 with HTTP; Mon, 5 Mar 2012 13:06:22 -0800 (PST) In-Reply-To: <4F552806.5040600@gmx.net> References: <4F520F97.3050506@gmx.net> <4F5219AF.2050105@pidster.com> <4F55104B.4000703@gmx.net> <4F552510.9060404@gmx.net> <4F552806.5040600@gmx.net> From: Chema Date: Mon, 5 Mar 2012 22:06:22 +0100 Message-ID: Subject: Re: [Tomcat JDBC Pool] Close pooled connections via JMX To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org > No if the connection has been reset by the instance. The query will result > in a SQLException. You have to close the connection and open a new one. The > query works on an open connection only. That's the point. > See the second paragraph of this [1]. > But the problem was when you restart the remote database , not the local database. In this case, SELECT 1 FROM DUAL works ( doesn't return a SQL exception ). But , when you execute after the query "SELEC * FROM TABLE@remotedb", then fails , was this the problem, right ? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org