hi doug, yup, was thinking along similar lines.  just wasn't sure if
there was some setting i wasn't aware of to do what i'm looking for.

thanks.
-annie

On 5/10/05, Parsons Technical Services <[EMAIL PROTECTED]> wrote:
> I may be off base on this one but I think that once Tomcat fires off the
> init method it doesn't care or monitor the progress of the servlet. Just
> think, some servlets may take several minutes to finish. If other apps had
> to wait then it could take a long time to get the server started.
> 
> Now as for a solution I am really speculating here (hopefully someone can
> educate both of us). I would look at a wait statement in the init method to
> pause the second app's servlet until the first one is done. Simply time the
> first app's servlet and set it for a little more.
> 
> Hopefully someone will set me straight if I am off base here.
> 
> Doug
> 
> ----- Original Message -----
> From: "Annie Wang" <[EMAIL PROTECTED]>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Tuesday, May 10, 2005 6:59 PM
> Subject: question about load-on-startup in web.xml
> 
> hi,
> 
> regarding the <load-on-startup> tag in web.xml:
> 
> say i have 2 web apps (webapp1 and webapp2).  if i configure webapp1's
> servlet to have <load-on-startup>1</load-on-startup> and webapp2's
> servlet to have <load-on-startup>100</load-on-startup>, does this mean
> that tomcat will init webapp1's servlet first and once that's done,
> it'll init webapp2's servlet?
> 
> basically, i want both web app's servlets to auto initialize on tomcat
> startup, but i want webapp2's servlet to initialze only after
> webapp1's servlet has finished initialization.  when i use the above
> load-on-startup settings, webapp2's servlet seems to initialize before
> webapp1's servlet has finished initialization.
> 
> thanks.
> -annie
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to