File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes web hosting and changing web.xml file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "web hosting and changing web.xml file?" Watch "web hosting and changing web.xml file?" New topic

web hosting and changing web.xml file?

sven studde
Ranch Hand

Joined: Sep 26, 2006
Posts: 148

In my development environment, when I make changes to web.xml, I have to shut down and restart Tomcat to get it to read the changes. How does that work when a website is hosted commercially? In other words, if I make changes to my web.xml file, and then I upload it to the web host, how do I get the changes to take effect?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Tomcat (as with most containers) gives you the ability to reload individual applications.

Many companies will have some kind of redunancy that allows them to bring down different servers. Other servers will handle the traffic until the one that's been brought down comes back up online.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

If you are serious about deploying applications be sure to choose a hosting company that gives you control over your environment.

If using Tomcat, the manager application will allow you to stop and start individual applications without the need to restart the entire server.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: web hosting and changing web.xml file?
It's not a secret anymore!