Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 65373 invoked from network); 2 Apr 2008 15:29:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 15:29:33 -0000 Received: (qmail 3127 invoked by uid 500); 2 Apr 2008 15:29:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2912 invoked by uid 500); 2 Apr 2008 15:29:22 -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 2901 invoked by uid 99); 2 Apr 2008 15:29:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 08:29:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hq4ever@gmail.com designates 64.233.170.190 as permitted sender) Received: from [64.233.170.190] (HELO rn-out-0910.google.com) (64.233.170.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 15:28:41 +0000 Received: by rn-out-0910.google.com with SMTP id j40so1701191rnf.4 for ; Wed, 02 Apr 2008 08:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=VvQ1sMgF/F3AP4yjvJx4+E/H28/fCjhyGacqiIJTQ0c=; b=pGC1/2Jwkkpw/ZysdiXQElnkskXDY5D9c1aFpdE0TwodcbTjvvhR/oZA3JWBTMDhecsr1siZAuOK2V6/8QYAO9GZm27Hmxl0eps+POVLQy64J19DWR6Lp2mpDlwjb7VlKz2SKRW4hBsNhccApBMKvlYjGGm1JikDU+ZR2/XIhlw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=FcvkbN5M6U3ojBLnHs6Ns6OAJUFN2vpCUbT4xdJKNfRosy2JCB/NYl4Ass1bG/E9zBtvQM4xrmHPEvPyuSYmaBv5us2quyfeP2YhbyYoNRMGHi4oD2nsVj33ymNsZQzi0QeNl0t/TBYFGLO11eWjbKtNnys2aXD+o488a/d5DVY= Received: by 10.114.89.1 with SMTP id m1mr15033294wab.77.1207150131772; Wed, 02 Apr 2008 08:28:51 -0700 (PDT) Received: by 10.114.254.19 with HTTP; Wed, 2 Apr 2008 08:28:51 -0700 (PDT) Message-ID: Date: Wed, 2 Apr 2008 18:28:51 +0300 From: "Maxim Veksler" Sender: hq4ever@gmail.com To: users@tomcat.apache.org Subject: Command line parameters inside webapps ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: a005da61dcefeddb X-Virus-Checked: Checked by ClamAV on apache.org Hello everyone, Can I read from my webapp a command line parameters passed to tomcat when it's loaded ? Something of the "-Dsomeparameter=somevalue", alternatively can I get access to environment variables passed to tomcat on it's initialization from my webapp ? What I'm trying to do is allow simple switch that can be passed to my webapp that would instruct it whether it is running passive or active. I've been googling for this and couldn't find any references to this. Thank you, Maxim. -- Cheers, Maxim Veksler "Free as in Freedom" - Do u GNU ? --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org