You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bocalinda <bo...@gmail.com> on 2008/11/25 09:09:15 UTC

Insert delay between war deployment

Hi,

I'm wondering if it is possible to change the deployment order which Tomcat
follows.
I've been searching the net, and as from what other people say, it is not
possible. Is this still true for Tomcat 6?

I more or less found a way to deploy applications at the beginning or at the
end by appending a .first or .last suffix to the name. Though, I would like
to know whether there is another way.

Thanks

RE: Insert delay between war deployment

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Bocalinda [mailto:bocalinda@gmail.com]
> Subject: Insert delay between war deployment
>
> I'm wondering if it is possible to change the deployment
> order which Tomcat follows.

No.  If your webapps have ordering dependencies, it's up to you to provide the necessary synchronization within the webapps.  The servlet spec indicates that webapps are independent, and Tomcat treats them that way.

> I more or less found a way to deploy applications at the
> beginning or at the end by appending a .first or .last
> suffix to the name.

A red herring, and not to be relied on.  It likely has more to do with the underlying file system hash code value generated for each webapp name in its directory.  The order is indeterminate, and whatever you kludge find that works today may well operate differently on the next update.

Right now, webapps are initialized serially, but there's nothing to prevent them from being done in parallel in the future.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org