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 9133C7B54 for ; Tue, 23 Aug 2011 19:58:06 +0000 (UTC) Received: (qmail 39007 invoked by uid 500); 23 Aug 2011 19:58:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 38929 invoked by uid 500); 23 Aug 2011 19:58:02 -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 38901 invoked by uid 99); 23 Aug 2011 19:58:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 19:58:01 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.59.212] (HELO qmta14.westchester.pa.mail.comcast.net) (76.96.59.212) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 19:57:53 +0000 Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta14.westchester.pa.mail.comcast.net with comcast id PvYW1h00527AodY5EvxZ6t; Tue, 23 Aug 2011 19:57:33 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta19.westchester.pa.mail.comcast.net with comcast id PvxV1h00q38FjT13fvxWZU; Tue, 23 Aug 2011 19:57:31 +0000 Message-ID: <4E54062E.4040103@christopherschultz.net> Date: Tue, 23 Aug 2011 15:57:34 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: jvmRoute generation References: In-Reply-To: X-Enigmail-Version: 1.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrew, On 8/23/2011 3:22 PM, Andrew Todd wrote: > I'm working on putting together a clustered environment with > sticky sessions, and I'm wondering if there's any way of > automatically generating a jvmRoute value in the engine container > (https://tomcat.apache.org/tomcat-7.0-doc/config/engine.html) > rather than setting one manually for each Tomcat instance. Thanks. You should be able to use a parametric replacement using a system property. That way, the file is the same across all installations but the system property can be set locally. Something like this: Then start Tomcat with CATALINA_OPTS="-DjvmRoute=galdalf" or whatever. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5UBi4ACgkQ9CaO5/Lv0PAG4ACfayQFX87SJ2PAYPnrC5JpTm3W tw8An07LwnoWs3kNpXyTdSqgZcOYTibI =siWU -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org