tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Order of WebApp Loading
Date Fri, 16 Sep 2005 14:55:35 GMT
run your dependent web app in it's own tomcat?

> -----Original Message-----
> From: Peter Menzel [mailto:peter.menzel@imise.uni-leipzig.de]
> Sent: 16 September 2005 15:55
> To: Tomcat Users List
> Subject: Re: Order of WebApp Loading
> 
> 
> I see,
> if i can't count on the order of loading, I tried something other:
> I set crossContext="true" for both webapps and while in 
> contextInitialized() of the webapp which schould run only after the 
> first webapp finished loading
> I use context.getContext("/db-app") to look if the first app 
> ist already 
> there. If not then it should wait with Thread.sleep().
> Unfortunately my Tomcat 5.5 seems to use only one thread for 
> loading all 
> web-apps, so if I let it wait the loading of all web-apps is blocked.
> 
> Obviously this solution will not work reliably, because it depends on 
> the threading model the container uses to load its apps.
> Do you have any other recommendations for this issue ?
> 
> Kind regards, Peter Menzel
> 
> 
> Robert Harper schrieb:
> 
> >The case is still that most servlet containers, Tomcat included, are
> >multithreaded and order of processing should not be counted 
> on. One app may
> >be swapped out while the other app runs. It is far better to 
> write your
> >servlets so that there is no dependency on order of 
> operation, order of
> >parameters, etc. Another reason not to count on this is that 
> it is not part
> >of the specification and one implementation or version of a 
> container may
> >choose to provide order or not and this might change. There 
> have been many
> >recommendations on how to do this and I would suggest you 
> try them. Your
> >apps will probably end up being more scaleable as well.
> >
> >Robert S. Harper
> >Information Access Technology, Inc.
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK> 
Disclaimer:  The information contained within this e-mail is confidential and may be privileged.
This email is intended solely for the named recipient only; if you are not authorised you
must not disclose, copy, distribute, or 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 appropriate
action and avoid troubling you further.  Any views expressed in this message are those of
the individual sender.  QAS Limited has the right lawfully to record, monitor and inspect
messages between its employees and any third party.  Your messages shall be subject to such
lawful supervision as QAS Limited deems to be necessary in order to protect its information,
its interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee
that attachments are virus free or compatible with your systems and does not accept any liability
in respect of viruses or computer problems experienced.
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message