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

specifying context startup order

 
Dan Tenenbaum
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a Tomcat 5.0x question.

I have a webapp which has a servlet that is set to load on startup. That servlet depends on another context (namely slide) being loaded already.

It used to work fine, and then it stopped working. The servlet would hang at the moment it tried to get a connection to the slide repository.

This is not proof that webapp startup order is the problem, but it is a strong indicator in that direction.

So...my question is: How can I specify the startup order of webapps?

This would not seem to be a rare problem, but I haven't found any solutions yet.

TIA
D
 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe they are loaded in the order in which they are added to server.xml. However, if you wanted, you could add a line of debugging to each application and check the log file entry's timestamp to see which loaded first.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic