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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Order in which applications are deployed" Watch "Order in which applications are deployed" New topic
Author

Order in which applications are deployed

Adam Bennett
Greenhorn

Joined: Sep 29, 2006
Posts: 2
Hi,

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.

Cheers,
Adam
Ben Souther
Sheriff

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
 
wood burning stoves
 
subject: Order in which applications are deployed