Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 84797 invoked from network); 11 Nov 2010 19:43:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 19:43:50 -0000 Received: (qmail 19889 invoked by uid 500); 11 Nov 2010 19:44:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 19662 invoked by uid 500); 11 Nov 2010 19:44:18 -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 19653 invoked by uid 99); 11 Nov 2010 19:44:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 19:44:18 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.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; Thu, 11 Nov 2010 19:44:11 +0000 Received: from omta15.westchester.pa.mail.comcast.net ([76.96.62.87]) by qmta14.westchester.pa.mail.comcast.net with comcast id Vpqc1f0021swQuc5Evjr4c; Thu, 11 Nov 2010 19:43:51 +0000 Received: from [192.168.1.203] ([69.143.109.145]) by omta15.westchester.pa.mail.comcast.net with comcast id Vvjr1f00938FjT13bvjrhl; Thu, 11 Nov 2010 19:43:51 +0000 Message-ID: <4CDC4776.2040903@christopherschultz.net> Date: Thu, 11 Nov 2010 14:43:50 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Http Coyote connector References: <4CD1A1A9.9020202@autonomy.com> In-Reply-To: <4CD1A1A9.9020202@autonomy.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kailash, On 11/3/2010 1:53 PM, Kailash Kothari wrote: > I understand that the Http Coyote connector that binds port 8080 on the > OS is started right at the end in the tomcat startup process after all > webapps have been deployed. > > This is a problem for us because we have one webapp that is deployed > first and then a second webapp that needs to talk to the first webapp in > a startup servlet. > > Since the http connector hasn't been started, the webapps cant talk to > each other until the server has started up completely. > > Is there a design reason that the http connector is started at the end > of boot up rather than earlier? My guess is that it doesn't make any sense to accept requests from clients before the services are actually available. As I see it, you have several options: * Run your webapps in different Tomcat instances, and start them up in the order you prefer. * Change your webapps so that they can communicate lazily with each other instead of immediately upon deployment. This allows you to keep the existing startup semantics but let your webapps communicate appropriately. * Modify Tomcat to start the connectors first and then the webapps. Understand that you might get some 404s or other weird errors during webapp deployment. > I tweaked the source code to start this up earlier and have everything > working as I need, but could this have any side effects? I'm sure it could have some side effects... what they are I couldn't guess. Good advice in all environments: test, test, test. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzcR3UACgkQ9CaO5/Lv0PCI2wCgwcbH91GrbpbX0sX6rhBStt4a jRMAmgNjci55uYidn1JaZwOdH7z3vwwF =neoM -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org