File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Order in which applications are deployed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Order in which applications are deployed" Watch "Order in which applications are deployed" New topic

Order in which applications are deployed

Adam Bennett

Joined: Sep 29, 2006
Posts: 2

It seems that when Tomcat deploys .WAR files it does then alphabetically. How do I change this?

I want my soap.war to deploy before my application.war as my application needs the soap features.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is no way to control the order in which applications in Tomcat get deployed.
I tried once.

(Correction, there wasn't when I tried a couple years ago).

One workaround might be to put a context listener in the apps that depend on the SOAP server app. Have it ping that app every n seconds to see if it's running. Make the servlets in the app unavailable until after the SOAP server proves that it's up and running.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Order in which applications are deployed
It's not a secret anymore!