0

Start automatically an application of a specific version at tomcat startup

asked 2017-08-31 09:01:13 +0800

LuigiFabbri gravatar image LuigiFabbri
46 5

updated 2017-08-31 09:01:56 +0800

Hello to all,

Is there a way to automatically start a certain application of a specific version at tomcat startup?

example:

I have two appications, app##001.war and app##002.war, I want when tomcat start that app##002.war switched on and app##001.war switched off

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-01 06:49:41 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

You can either

  • set <Host autoDeploy="false">
  • <Host deployIgnore="app002.war" >

conf/server.xml

Ref: http://tomcat.apache.org/tomcat-7.0-doc/config/host.html#UserWebApplications

link publish delete flag offensive edit

Comments

Thanks Hawk, deployIgnore is perfect

LuigiFabbri ( 2017-09-01 10:32:47 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-08-31 09:01:13 +0800

Seen: 9 times

Last updated: Sep 01 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More