You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Srikanth Konjarla <sr...@gmail.com> on 2011/02/17 22:38:08 UTC

Order of webapps startup

As per the Wiki at http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q27

---
What order do webapps start (or how can I change startup 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.
---

Wondering if there is anything changed in 7.x? If not, how in general it
is addressed if one webapp depends on another webapp to be available.

Thanks

Srikanth

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


Re: Order of webapps startup

Posted by André Warnier <aw...@ice-sa.com>.
Mark Thomas wrote:
> On 17/02/2011 22:12, Mark Thomas wrote:
>> The one way you can control this is define the Contexts in server.xml.
>> They will be started in the order they appear in the file.
> 
> Forgot to mention the caveat. It works like this at the moment. There is
> no guarantee it will continue to work like this.
> 
The second caveat being that if you want to change anything to the Context of an 
application, you have to restart the whole Tomcat.


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


Re: Order of webapps startup

Posted by Mark Thomas <ma...@apache.org>.
On 17/02/2011 22:12, Mark Thomas wrote:
> The one way you can control this is define the Contexts in server.xml.
> They will be started in the order they appear in the file.

Forgot to mention the caveat. It works like this at the moment. There is
no guarantee it will continue to work like this.

Mark

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


Re: Order of webapps startup

Posted by Mark Thomas <ma...@apache.org>.
On 17/02/2011 21:38, Srikanth Konjarla wrote:
> As per the Wiki at http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q27
> 
> ---
> What order do webapps start (or how can I change startup 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.
> ---
> 
> Wondering if there is anything changed in 7.x?

Nope.

> If not, how in general it
> is addressed if one webapp depends on another webapp to be available.

Don't design your web applications that way. Web apps are meant to be
independent.

The one way you can control this is define the Contexts in server.xml.
They will be started in the order they appear in the file.

Mark

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