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 2AE4F610A for ; Thu, 16 Jun 2011 13:02:00 +0000 (UTC) Received: (qmail 22920 invoked by uid 500); 16 Jun 2011 13:01:55 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22779 invoked by uid 500); 16 Jun 2011 13:01:55 -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 22770 invoked by uid 99); 16 Jun 2011 13:01:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 13:01:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vx0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 13:01:49 +0000 Received: by vxb37 with SMTP id 37so1720485vxb.18 for ; Thu, 16 Jun 2011 06:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=LmQC8ovNN25zQk9oYRyD+/INWR4O/EMMqdBKse8vlO8=; b=fRxcdZjMKlTfoDBih4xxRMIbeZVNcktluwBCJ8xBuyEE+zbznceJUT4qJ7OELmkXGd VVl8xPgnooaDRMEXI9ZM1hsHmWLLMQdQrnbzOkr9gXv0xmkiNpEeEHgY6/sdtkrOfFO1 q0I2nZNeu9Rg4Q94/ZNE2uJRz9XHQctRwmTgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=k6EUGusD/SmlQPYJzxrHFWXM4HrfOoEvYuQtvhfUzP1fEdDnPT2GdmBhrqM9fPhkT8 lI2Gnqevn0Z1f7CxLllHVEK/gfSz4lhL9k0ozNPG++9WeheD4bhWu683tz5whQ1MsKpn gg5dEcG4Ms8rzbm6R774OPwl+0TWLR7d0ppiY= MIME-Version: 1.0 Received: by 10.52.95.46 with SMTP id dh14mr1239705vdb.60.1308229289136; Thu, 16 Jun 2011 06:01:29 -0700 (PDT) Received: by 10.52.162.73 with HTTP; Thu, 16 Jun 2011 06:01:29 -0700 (PDT) In-Reply-To: References: <4DF9DB07.6010708@pidster.com> Date: Thu, 16 Jun 2011 17:01:29 +0400 Message-ID: Subject: Re: Feature request: "fullstart" command From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2011/6/16 Francis GALIEGUE : > On Thu, Jun 16, 2011 at 14:48, Konstantin Kolinko > wrote: > [...] >> >> Some resources are allocated only on the first access. >> >> E.g. starting servlets, or obtaining database connections from a pool. >> Unless you obtain a connection there is no knowing that the database >> is accessible. >> > > I know that. Some initialization phases, though, _do_ (or, if not, > should) raise errors on deployment, and right now I have no way to > catch such errors at startup time. And I'm not talking about > connectors here. I did learn one thing though, about that > EXIT_ON_FAILURE option: it should have been the default as far as I'm > concerned, but ohwell... > > > Again, connectors are one part of the problem here (I use > EXIT_ON_FAILURE now on my deployments). But application deployment is > another. Unless there is some hidden meaning to a Connector which I > haven't understood. > Implement what you want in a listener. Throw an Error if whatever you want fails. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org