• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploying Apps w/o shutting down?

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I meant stopping and starting Tomcat
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat manager is good tool for start/stop/reload/remove web application in tomcat.
 
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic