Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Deploying the updated webapplication without stopping tomcat

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know how to deploy an updated war file and switching to it without stopping the server. All the requests from application users has to be carried out during this process.?? I am waiting for some response !!!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you really need that capability, you might need to look into clustering.

If your web app was deployed with a war file in the webapps directory, simply replacing the war file will cause Tomcat to redeploy the app but, depending on the OS and how Tomcat was started, the cleanliness of this will vary.
By cleanliness I mean that sometimes a windows service might have a jar file locked so it won't get overridden. Often (and I'm not sure why) some JSPs won't get overridden either. It may have to do with the file dates.

Upgrading this way is the equivalent to unzipping one directory structure on top of another. Things don't removed, only added, and sometimes overritten.
Personally, I prefer a clean undeploy and then a new deployment with the current version but, our customers don't need 24/7 coverage.
 
Wanna see my flashlight? How about this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic