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 DA2726348 for ; Tue, 14 Jun 2011 18:17:15 +0000 (UTC) Received: (qmail 65557 invoked by uid 500); 14 Jun 2011 18:17:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65500 invoked by uid 500); 14 Jun 2011 18:17:12 -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 65491 invoked by uid 99); 14 Jun 2011 18:17:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 18:17:12 +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.243] (HELO qmta13.westchester.pa.mail.comcast.net) (76.96.59.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 18:17:04 +0000 Received: from omta24.westchester.pa.mail.comcast.net ([76.96.62.76]) by qmta13.westchester.pa.mail.comcast.net with comcast id vu1q1g0031ei1Bg5DuGjry; Tue, 14 Jun 2011 18:16:43 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta24.westchester.pa.mail.comcast.net with comcast id vuGi1g00k38FjT13kuGiqq; Tue, 14 Jun 2011 18:16:42 +0000 Message-ID: <4DF7A589.4020304@christopherschultz.net> Date: Tue, 14 Jun 2011 14:16:41 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: One process per webapp References: <31836121.post@talk.nabble.com> <4DF686D7.1070001@christopherschultz.net> <4DF76381.2070403@pidster.com> In-Reply-To: <4DF76381.2070403@pidster.com> X-Enigmail-Version: 1.2a1pre 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 Pid, On 6/14/2011 9:34 AM, Pid wrote: > On 13/06/2011 22:53, Christopher Schultz wrote: >> >> What "single management interface" are you describing in your >> enhancement comments? The Tomcat manager webapp? It's trivial to run a >> manager in each JVM and use that for deployment. >> >> If you know that your webapp needs to do things such as register a >> shared library on startup, you can do one of two things: >> >> 1. Always bounce Tomcat directly instead of re-loading the webapp >> 2. Fix the webapp so it doesn't bomb on startup when the library >> is already loaded >> >> Tomcat provides the manager webapp and ant tasks to access it, plus a >> toolbox of scripts to start/stop/etc. Tomcat. Your needs seem to be >> fairly specific... why not just roll your own solution? > > Bouncing a JVM requires admin access to the local operating system, > which you probably wouldn't want to give to a Tomcat application. Not necessarily... we run Tomcat unprivileged so bouncing the JVM just requires "normal" user access. If you need port 80, use jsvc or one of the other similar options. Now, bouncing the JVM from withing the JVM... that requires some creativity. It sounds like the OP could just wrap the Tomcat launcher in a script that looks roughly like this: #/bin/sh while [ 1 ] do ${CATALINA_HOME}/bin/startup.sh run >> "$CATALINA_OUT" 2>&1 done This would start a Tomcat and wait for it to finish, then restart when the original JVM came down. I suspect using JMX or whatever, one can request a Tomcat shutdown which will ultimately terminate the JVM (unless some foolish person launched a non-daemon thread at some point). The script will re-start Tomcat. This just doesn't seem like a difficult thing to implement oneself, nor does it seem like something that is widely applicable. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk33pYkACgkQ9CaO5/Lv0PC8SACfVOfOhDAvgLzv6bdlKnzVJ96i k50AnRi3Si75/+E1j0ME/YMQESVcFdbY =jcbN -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org