Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying Apps w/o shutting down?

 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this currently possible?
Could I update one jar file w/o shutting down?
Could I change log preferences w/o shutting down?
Can I remove or stop one webapp w/o shutting down?
 
Scott J
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you clarify what you meant in "shutting down"? Do you mean you need to shutdown the server while take the actions described and/or restart the server to take it effect or restart the computer?

Thanks
 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I meant stopping and starting Tomcat
 
Charles Hasegawa
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anthony Smith:
Is this currently possible?
Could I update one jar file w/o shutting down?
Could I change log preferences w/o shutting down?
Can I remove or stop one webapp w/o shutting down?

A lot depends on your Tomcat configuration, but...

Yes, you can deploy without shutting down. There can be issues - for instance, I've seen where if the WAR file you are copying into the webapps directory is very large, tomcat can start deploying before the whole thing is there.

You can replace a jar in a deployed application's WEB-INF/lib directory and using the manager, reload the application.

Dunno about the logs.

You can deal with individual applications through Tomcat's manager (assuming you configured a manager user in the tomcat-users.xml file).
 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With log4j, you can change preferences in the log4j.properties file. I put this in the conf directory for tomcat. If you use the method PropertyConfigurator.configureAndWatch(), changes will take effect without even restarting the app.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat manager is good tool for start/stop/reload/remove web application in tomcat.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic