Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BF8F5200B6F for ; Tue, 9 Aug 2016 10:52:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC980160AA4; Tue, 9 Aug 2016 08:52:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1D4A3160AA5 for ; Tue, 9 Aug 2016 10:52:48 +0200 (CEST) Received: (qmail 95766 invoked by uid 500); 9 Aug 2016 08:52:47 -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 95755 invoked by uid 99); 9 Aug 2016 08:52:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2016 08:52:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 319F11A070B for ; Tue, 9 Aug 2016 08:52:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.72 X-Spam-Level: X-Spam-Status: No, score=-0.72 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=tp-italia-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id LVbKuBx4a_HL for ; Tue, 9 Aug 2016 08:52:42 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id ACED65FBD0 for ; Tue, 9 Aug 2016 08:52:42 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id o80so19552708wme.1 for ; Tue, 09 Aug 2016 01:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tp-italia-com.20150623.gappssmtp.com; s=20150623; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:content-transfer-encoding; bh=fBRKurak1q0BwgblZx8jeXKhOTwx73ssgdPHmMkr29E=; b=BPNvXZsE1+QqjJsap3LsITN8tiahF44I9cfFtoZA4IkUTeEKoHllw+09WMfV+xYB1V KnxzYdtnFxBTmwdTXG2S6gxE4SylnrBRWdE1Hiy/lNAx2dvh+zik5+471j5e4gOFH3oq 7+ctCoummo1eXghApLozixhD1RQXZ9V1WsVLv/1SxmucgSWUg9S+JNu2ajnaBFdXPVc4 8ixX3eP7ul2qlKL+ona+e9kSHV7HuoI3yuoyq+EciqM8c3mHHYlUR0vdLpM3jxHVriMT MkHMHWPskNSquQSLm8P01iZ99r5DJ7++EiN/AFKfcPSCLMsSg+ypeKsIbmMrOuZsGsy8 KWYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:content-transfer-encoding; bh=fBRKurak1q0BwgblZx8jeXKhOTwx73ssgdPHmMkr29E=; b=GeUXt6FZ3+X7tdLKdcaT0Uh6PoB9C6bLr45muHsiOTOgo9E+CMxlyldx1PBuaqKeEb R8Tn+0h8tQ31JQ3dCHXku2FMNPYv+MZp/RReNbDlM2LWBbVaUQbdvb5/4yI3qhOVzaf3 8aZyEMk5L96QO60pd8CiJI6ZP5pJk/kYwKhwr9vZ11WCIBzBrGSdnKX1JreXhpUpU+pt 2ubhCeD6JEr2y1Ht5769aY346sd8xeNM4vwk40/mY65FUcAZ8DNPnmVcAv+/+plTpC6H /9KLbh4vyGrL7LXLjHIytc4SD3QPHiXVdEjDIrDo7YikAFf3LBtbfMjrs6OLqemRbpZ3 X03g== X-Gm-Message-State: AEkooutRUytW1TJ57V1arpT+geuzfG5DHt4TW98lY9sKNjiWpZGGIRHC908AqaEP7Za4mSk2rZrrsrBUM8z7Gg== X-Received: by 10.25.23.99 with SMTP id n96mr31072054lfi.64.1470732761868; Tue, 09 Aug 2016 01:52:41 -0700 (PDT) From: Andrea Galli References: <7a56a9c89de8fd69dfc02d9fd13a3fc7@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJbN3468dcAvYBMgM84UFCM+axAXAGloMuDnyCNTFA= Date: Tue, 9 Aug 2016 10:52:23 +0200 Message-ID: <0e2a3615f212108c8e1868671dc3a7d0@mail.gmail.com> Subject: R: jdbc check available database To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Tue, 09 Aug 2016 08:52:49 -0000 Thank you Christoph , but in this how-to there isn't any example for SQL Server. -----Messaggio originale----- Da: Christoph Nenning [mailto:Christoph.Nenning@lex-com.net] Inviato: marted=C3=AC 2 agosto 2016 09:44 A: Tomcat Users List Oggetto: Re: jdbc check available database > Hello guys, > > I=E2=80=99ve SQL Server database with Tomcat 7 and, when I restart only database, > webapps on Tomcat didn=E2=80=99t works , it show me error to connect to database .. > > In webapp context I use jdbc driver for connect, so there is a kind of > method for retry to connect to database when it return available? > > > Hi, I suggest to use a DataSource instead of dealing with jdbc connections on your own. see: http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html Regards, Christoph This Email was scanned by Sophos Anti Virus --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org