thanks for the insights and suggestions chuck!

On 5/11/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > From: Annie Wang [mailto:[EMAIL PROTECTED]
> > Subject: Re: question about load-on-startup in web.xml
> >
> > any one know if there's a way to make webappY get installed before
> > webappX?
> 
> As far as I can tell, the intent of the JSP and servlet specs is for web
> applications to be independent of both the container and each other.
> Since Tomcat is the reference implementation for the spec, the
> developers seem to avoid introducing many Tomcat-unique features that
> would reduce application portability.  The load-on-startup tag is part
> of the servlet spec, defined to control instantiation of servlets within
> an app, not across apps.
> 
> If you want to synchronize application deployment, I think you're going
> to have to do that within the app itself, possibly with context
> listeners to minimize inter-app dependencies.  You'd probably want to
> use reflection to make references to whatever class or object you
> synchronize on, otherwise you're going to have problems independently
> updating the apps without taking Tomcat down.  Another option, of
> course, is to extend the existing deployOnStartup mechanism to do what
> you want.  After all, this is open-source.
> 
> Or maybe there's some neat trick I haven't found yet.
> 
> > what determines the install order?
> 
> These references only partially answer the question:
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/deployer-howto.html#Depl
> oying%20on%20Tomcat%20startup
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Automat
> ic%20Application%20Deployment
> 
> My somewhat less than rigorous experimentation seems to indicate that
> apps are deployed serially, not in parallel, but I haven't tried to
> figure out what determines the order.
> 
>  - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> 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