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 69156200B61 for ; Tue, 9 Aug 2016 11:39:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 67D09160AA5; Tue, 9 Aug 2016 09:39:09 +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 B0A49160AA4 for ; Tue, 9 Aug 2016 11:39:08 +0200 (CEST) Received: (qmail 89720 invoked by uid 500); 9 Aug 2016 09:39:07 -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 89709 invoked by uid 99); 9 Aug 2016 09:39:07 -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 09:39:07 +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 D07551A007A for ; Tue, 9 Aug 2016 09:39:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.279 X-Spam-Level: *** X-Spam-Status: No, score=3.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_SBL=4, URIBL_SBL_A=0.1] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 UFu6eDvHPTT6 for ; Tue, 9 Aug 2016 09:39:05 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6E1235FBBE for ; Tue, 9 Aug 2016 09:39:04 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id q128so21959852wma.1 for ; Tue, 09 Aug 2016 02:39:04 -0700 (PDT) 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-transfer-encoding; bh=L6n6+yzUSVQ6AdGn/QRKbqVwS6ARArO+XmpTJAKXs6E=; b=Kdz6B6o4gpeiCzAiH8pVvZ8LW8T624oH7znRHWDncmTBfzhR5GGgwyn61PwLUlV/6j byKnrQdUfCTQ3MJsluaswVelslFdRImMGaBhdiHL3grQhg+GQ13SL+3Q/DYLgCh+lZy3 8uWej5JImfTrXXHcgFlAcaHNRm3OP8N5U26rNsWWoe+u2bTZVyaicv9ykxNwhunJz+NV izkRwLEOot6ltoN/6zyxZqvl6IPC5F6AZMWZ9f1GwS/sYg5WmkUJ2uYlv7uGG17AwmyW oG6hTJF96PQ06Nx2ydHcJ9mgE+bXQnqEuYPTFu28sVnrPFnNn5yOsjiNW2VsTdlDE1Yc Ck4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=L6n6+yzUSVQ6AdGn/QRKbqVwS6ARArO+XmpTJAKXs6E=; b=K/YGxR0Dcqy0f3azb1Kc8ZpU6sWA7zOC/6SNq0dqemHhoB20g5WJare2gNjcg16DaD OURZ/ehv3DikBocVj8loiZJkuCYJ4QS8b+MvK6XWkW6X2m09f6gHArawWdxcGlLtMNL7 7jYnLQQS5TJMWni2rbBHUmaMaA6C1A2D6/Ah7OJE19bFZZQHvvjuSBmnaTYIs3dYLqyN JCJMlJbsEi0lclPxuSyoCjT8tn102F7SqzwV34Ny500AY8gjNfDVtgo3hm6292eARvxA 6vTYA6rI+8nYGBRh0kj8B0wV2IBZBdVMq8hddSH0Zywr23MqS6+B9ScTtHEW4rkx9w1P dEMw== X-Gm-Message-State: AEkoouuCMDL5h+ytvK35ApL74tKUhWJESpITrGKXcxpnWKk7iy1oqG10Y+kRr5g2CuDGTwbSzt4O2FYxRCsUpg== X-Received: by 10.46.5.15 with SMTP id 15mr26562427ljf.65.1470735543721; Tue, 09 Aug 2016 02:39:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.233.100 with HTTP; Tue, 9 Aug 2016 02:38:43 -0700 (PDT) In-Reply-To: <0e2a3615f212108c8e1868671dc3a7d0@mail.gmail.com> References: <7a56a9c89de8fd69dfc02d9fd13a3fc7@mail.gmail.com> <0e2a3615f212108c8e1868671dc3a7d0@mail.gmail.com> From: =?UTF-8?Q?Jose_Mar=C3=ADa_Zaragoza?= Date: Tue, 9 Aug 2016 11:38:43 +0200 Message-ID: Subject: Re: 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 09:39:09 -0000 2016-08-09 10:52 GMT+02:00 Andrea Galli : > Thank you Christoph , but in this how-to there isn't any example for SQL > Server. This is my configuration (context.xml) for a SQL Server connection pool You need a SQL Server JDBC driver > > -----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.ht= ml > > > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org