Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 47002 invoked from network); 16 Sep 2005 08:25:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Sep 2005 08:25:52 -0000 Received: (qmail 13404 invoked by uid 500); 16 Sep 2005 08:25:34 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 13384 invoked by uid 500); 16 Sep 2005 08:25:34 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 13371 invoked by uid 99); 16 Sep 2005 08:25:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2005 01:25:34 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: error (asf.osuosl.org: local policy) Received: from [195.172.82.137] (HELO mail3.qas.com) (195.172.82.137) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2005 01:25:43 -0700 Received: from orion.qas.com (orion.qas.com) by mail3.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Fri, 16 Sep 2005 09:25:07 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Order of WebApp Loading Date: Fri, 16 Sep 2005 09:25:07 +0100 Message-ID: <5684A7E6FB10504393A2806C1F4C0210076CE4B2@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Order of WebApp Loading Thread-Index: AcW6Hi78mzbRTOe1RsW2MEjk+h24zQAAZiYAAB4EqVA= From: "Allistair Crossley" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Create a servlet that is shared by all your web applications, perhaps use c= ommon/classes (or shared/classes - not sure which), and configure it to be = a load-on-startup servlet in each web app's web.xml. your servlet can hook = into your db startup code, or not bother if already started. Allistair > -----Original Message----- > From: Robert Harper [mailto:robert@iat-cti.com] > Sent: 15 September 2005 19:08 > To: 'Tomcat Users List' > Subject: RE: Order of WebApp Loading >=20 >=20 > The case is still that most servlet containers, Tomcat included, are > multithreaded and order of processing should not be counted=20 > on. One app may > be swapped out while the other app runs. It is far better to=20 > write your > servlets so that there is no dependency on order of=20 > operation, order of > parameters, etc. Another reason not to count on this is that=20 > it is not part > of the specification and one implementation or version of a=20 > container may > choose to provide order or not and this might change. There=20 > have been many > recommendations on how to do this and I would suggest you try=20 > them. Your > apps will probably end up being more scaleable as well. >=20 > Robert S. Harper > Information Access Technology, Inc. >=20 > -----Original Message----- > From: Jilles van Gurp [mailto:incoming@jillesvangurp.com]=20 > Sent: Thursday, September 15, 2005 11:52 AM > To: Tomcat Users List > Subject: Re: Order of WebApp Loading >=20 > If you define the contexts in the server.xml, they are started in the=20 > order that you define them, I think. >=20 > Regards, >=20 > Jilles >=20 > Peter Menzel wrote: > > Hi there, > > > > I have a question concerning Tomcats webapp loading: > > What is the order in which tomcats loads its webapps ? > > I have two webapps configured by=20 > /conf/Catalina/localhost/XXX.xml and=20 > > I need one webapp to be loaded before the other, because it=20 > starts the=20 > > database. > > How does Tomcat choose the first, second, ... > > And what is the loading sequence, if both are deployed as a .war ? > > > > Kind regards, Peter Menzel > > > > > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 =20 ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- =20 Disclaimer: The information contained within this e-mail is confidential a= nd may be privileged. This email is intended solely for the named recipient= only; if you are not authorised you must not disclose, copy, distribute, o= r retain this message or any part of it. If you have received this message = in error please contact the sender at once so that we may take the appropri= ate action and avoid troubling you further. Any views expressed in this me= ssage are those of the individual sender. QAS Limited has the right lawful= ly to record, monitor and inspect messages between its employees and any th= ird party. Your messages shall be subject to such lawful supervision as QA= S Limited deems to be necessary in order to protect its information, its in= terests and its reputation. =20 Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS L= imited cannot guarantee that attachments are virus free or compatible with = your systems and does not accept any liability in respect of viruses or com= puter problems experienced. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org