> -----Original Message----- > From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 30, 2007 7:57 AM > To: Tomcat Users List > Subject: Re: order of web app initialization. > > > These TC designers seem to have though of everything > See > <load-on-startup>1</load-on-startup> > > The <load-on-startup> sub-element indicates the order in which each > servlet > should be loaded. Lower positive values are loaded first. If the value is > negative or unspecified, then the container can load the servlet at > anytime > during startup. > > otherwise they will init, only on a request >
The above is certainly true, however it is not relevant to the original post -- which questions the context startup order, not the servlet startup order. This will allow servlets to start in the order specified but not different contexts. The only thing you can do for dependent contexts is to code them so they can survive out of order. ServletContextListener is one of the tools in your toolbox. Be sure not to block therein, however. See here: http://www.mail-archive.com/users@tomcat.apache.org/msg29127.html Tim > > ----- Original Message ----- > From: "suchitha koneru" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <users@tomcat.apache.org> > Sent: Saturday, June 30, 2007 1:05 AM > Subject: order of web app initialization. > > > > Hello Tomcat users , > > Iam using Tomcat 5.520 . I have three web application contexts > > Context A, B and C. I have a requirement because of which Context A > > should > > start Before B and C. All the web applications contexts are placed as > > WARS > > under Tomcat/webapps. > > How can we indicate the order in which Tomcat should start the web > apps ? > > is > > there any configuration file for specifying the order of context > > initialization. What is teh default order which tomcat uses to start the > > web > > apps ? > > Please let me know. > > thanks, > > Suchitha. > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]