Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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.
 
It means our mission is in jeapordy! Quick, read this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!