Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order in which applications are deployed

 
Adam Bennett
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic