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 599C0F298 for ; Fri, 5 Apr 2013 20:44:54 +0000 (UTC) Received: (qmail 26416 invoked by uid 500); 5 Apr 2013 20:44:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 26211 invoked by uid 500); 5 Apr 2013 20:44:51 -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 26202 invoked by uid 99); 5 Apr 2013 20:44:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 20:44:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,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.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 20:44:45 +0000 Received: by mail-oa0-f52.google.com with SMTP id k14so4484806oag.11 for ; Fri, 05 Apr 2013 13:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=Pz90UMdNdCgnLzw8JrUfg5W1CD1kP+j1OE1kRP+SDTM=; b=h37lgQNh8Jo066ne3EhiyX8npY7Tc2ik632sG19JZyGBb/dV2gYZvfg/58HpwKdpCU RONtqauNZbkA/VSZ1GwXiAwdj5dQq5f8U1ip1K3LT12Ku1e89Mq+49CwZafgvOdJDS8K BOHBXt1OqQ2NAdEwHqKjqBcNs0HuL/TdkFi4CmFxK6Ko8oiq3aF6HTNjowmofhcRNfTm FOfvoS2Pe47TLddSGMDNS2jNlCTiJcZty4A7cKGLF2PQFCQ4CXO4L3L+k0J1j15yHSUE 7qeeFw0nePCzf47xsE8uOxJvxvluu3gZJ0EWDV0LeSGMNgHOFANX+iZapfSJH/FoNXB2 3axw== X-Received: by 10.60.6.133 with SMTP id b5mr9059034oea.81.1365194664052; Fri, 05 Apr 2013 13:44:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.122.173 with HTTP; Fri, 5 Apr 2013 13:44:03 -0700 (PDT) In-Reply-To: References: <515E9B5A.3060909@medifirst.fr> <515EEFC8.7090108@medifirst.fr> From: =?ISO-8859-1?Q?Jose_Mar=EDa_Zaragoza?= Date: Fri, 5 Apr 2013 22:44:03 +0200 Message-ID: Subject: Re: Tomcat7 - ajax and connection pool : "connection closed" despite the use of "validationQuery" and "testOnBorrow" To: Tomcat Users List Content-Type: multipart/alternative; boundary=e89a8fb20334005d2304d9a32790 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb20334005d2304d9a32790 Content-Type: text/plain; charset=ISO-8859-1 'select 1 from dual' works in Oracle DB In MySQL, "select 1" 2013/4/5 Propes, Barry L > I could be wrong, but is that validationQuery attribute correct? > > "SELECT 1" ? - I have validationQuery="select 1 from dual" in mine, and > my doc states it has to be a valid SQL statement returning at least one row. > > That may not factor in at all, just noticed it. Looked maybe out of kilter. > > -----Original Message----- > From: Jean-Claude Haw-King-Chon [mailto:JChaw-king-chon@medifirst.fr] > Sent: Friday, April 05, 2013 10:38 AM > To: Tomcat Users List > Subject: Re: Tomcat7 - ajax and connection pool : "connection closed" > despite the use of "validationQuery" and "testOnBorrow" > > .. > > My configuration : > > name="jdbc/607" > auth="Container" > type="javax.sql.DataSource" > username="xxxxx" > password="xxxxx" > driverClassName="com.mysql.jdbc.Driver" > url="jdbc:mysql://localhost:3306/XXXXX" > removeAbandoned="true" > removeAbandonedTimeout="300" > testOnBorrow="true" > validationQuery="SELECT 1" > logAbandoned="true" > /> > Tomcat 7.0.29 > Linux Fedora Core 12 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --e89a8fb20334005d2304d9a32790--