Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes Unloading servlet when changed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Unloading servlet when changed" Watch "Unloading servlet when changed" New topic
Author

Unloading servlet when changed

kumar prabhakar
Greenhorn

Joined: Feb 27, 2012
Posts: 13
Hi Friends,
How to unload the servlet explicitly?There is no way to call destroy method from a servlet code.
Whenever i change the servlet code ,i have to close and start the server again to check the output instantly.
Thanks to all for helping me out to solve the previous problems !
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
There shouldn't be a need to restart the server - most servlet containers (like Tomcat) have an option to reload individual web apps through a management console. Should be quite a bit faster than restarting the server.
kumar prabhakar
Greenhorn

Joined: Feb 27, 2012
Posts: 13
Thanks!
I have edited my tomcat-users.xml ,now i am able to use the management web page of tomcat sever.
 
wood burning stoves
 
subject: Unloading servlet when changed
 
Similar Threads
classpath
code for playing mp3 player
how to create tablespace in java dbms
c on ubuntu
how to make a servlet to run at startup of the application