tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Update of "FAQ/Miscellaneous" by Bodo Junglas
Date Thu, 04 Oct 2012 09:05:08 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "FAQ/Miscellaneous" page has been changed by Bodo Junglas:
http://wiki.apache.org/tomcat/FAQ/Miscellaneous?action=diff&rev1=32&rev2=33

Comment:
Added a workaround for webapp starting order

  
  There is no expected startup order. Neither the Servlet spec nor Tomcat define one. You
can't rely on the apps starting in any particular order. 
  
+ While the above statement is certainly true, there is a potential "workaround":
+ If you actually have two (or more) apps depending on each other, you may decided to start
multiple services in you server.xml:
+ {{{
+ <Service name="Webapps1">
+   <Connector .../>
+ 
+   <Engine ...>
+      <Host appbase="webapps1" ...>
+        ...        
+      </Host>
+   </Engine>
+ </Service>
+ <Service name="Webapps2">
+   <Connector .../>
+ 
+   <Engine ...>
+      <Host appbase="webapps2" ...>
+        ...        
+      </Host>
+   </Engine>
+ </Service>
+ }}}
+ I.e. you split the regular "/webapps" directory into "/webapp21" and "/webapps2", whereas
everything in the former is deployed and started before the later.
+ The drawback is that you need separate ports for the services.
  
  <<BR>>
  

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


Mime
View raw message