December81
December81

Reputation: 21

Ordered startup of web applications

I have a two web applications that run on the same Tomcat, but an application depends of the services offered by the other application. Is it possible to set the order in which these applications are started in Tomcat?

Upvotes: 2

Views: 109

Answers (1)

rnglbd
rnglbd

Reputation: 471

From the Tomcat FAQ:

What order do webapps start (or how can I change startup order)?

There is no expected startup order. Neither the Servlet spec nor Tomcat define one. You can't rely on the apps starting in any particular order.

While the statement is certainly true, there is a potential "workaround", if you actually have two (or more) apps depending on each other, you may decide to start multiple services in you server.xml: [...]

Upvotes: 3

Related Questions