File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Tomcat 4.1 & Servlet Reloading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat 4.1 & Servlet Reloading" Watch "Tomcat 4.1 & Servlet Reloading" New topic

Tomcat 4.1 & Servlet Reloading

Eric Christensen

Joined: Jul 29, 2002
Posts: 15
How can I set Tomcat up so that when I reload a new version of a servlet and an old session accesses the same servlet, it will be reloaded and the client will see the changes?

"No matter how hard you try, you cannot outthink a moron."
Eric Christensen

Joined: Jul 29, 2002
Posts: 15
I was just looking at the server.xml and answered my own question. I noticed the examples in Tomcat had a reloadable entry set to true. I made a same entry for DefaultContext and it worked. Here's the line I put in:
<DefaultContext reloadable="true"/>
It works like a charm now.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Gee, you are so .
Now if we can just get everybody ELSE to answer their own questions .

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Tomcat 4.1 & Servlet Reloading
It's not a secret anymore!