Is there a way to enforce a deployment order in tom 7 and tom6 ?

前端 未结 2 1728
野趣味
野趣味 2021-01-18 12:34

I have multiple war files to deploy, for example. coll.war, egg.war, etc., each one will specify an application module.

In our application

2条回答
  •  一向
    一向 (楼主)
    2021-01-18 13:24

    see the answer for tomcat6. Part of the answer is that not even the servlet spec specifies an order. Also, it contains various pointers on how to solve the problem in different ways than through application-server-based deployment order

    I am not aware that anything in tomcat7 changed the assumptions, so that the linked answer should be sufficient, even if you're on tomcat7, not tomcat6

    To make it more explicit, promoting a comment into the answer:

    That answer wouldn't help you do what you're asking (because it explicitly states that tomcat is not providing this option), but it links to the tomcat wiki with workarounds, mentions different solutions to the problem with Zeroconf, etc.. This means that your underlying problem with inter-dependent WAR files can be solved, just not necessarily by specifying app-server's deployment order.

提交回复
热议问题