wood burning stoves*
The moose likes Tomcat and the fly likes Deploying the updated webapplication without stopping tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying the updated webapplication without stopping tomcat" Watch "Deploying the updated webapplication without stopping tomcat" New topic
Author

Deploying the updated webapplication without stopping tomcat

Kaywin Dcosta
Greenhorn

Joined: Jan 19, 2008
Posts: 4
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 !!!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
 
subject: Deploying the updated webapplication without stopping tomcat
 
Similar Threads
java.lang.OutOfMemoryError: Java heap space
Hot deployment
Removing MDB Instance
Restart Tomcat Everytime?
when would a servlet be destroyed