aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Similar Threads
prisoner problem
Which RSS reader do u use?
Convincing the management
Beta Part II submission acknowledgement
What UML Tool(s) are you using for SCEA Beta Part II?