How can I restart a Servlet without restarting Tomcat?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tijana_Milicevic
Posted On:   Thursday, October 25, 2001 03:31 AM

I'm developing a Servlet (on Tomcat) and a couple of other developers are using the same Tomcat for other things.
My servlet is in tomcat/lib/ (on Linux)and it has to be there. Is there a way to change my servlet and start it again without disturbing the others?

What is 'automatic servlet reloading' and does it apply to my case?

Re: How can I restart a Servlet without restarting Tomcat?

Posted By:   Alex_Chaffee  
Posted On:   Saturday, October 27, 2001 07:42 AM

Please ask this on the Tomcat FAQ instead

Re: How can I restart a Servlet without restarting Tomcat?

Posted By:   Bozidar_Dangubic  
Posted On:   Thursday, October 25, 2001 04:37 AM

tijana, automatic servlet reloading is exactly what you need. you need to tell the container to reload the servlet if the class file that you deployed has changed. you would specify that in the web.xml when you deploy the web application. now, you will need to refer to tomcat documentation (I am not using Tomcat so I am not sure) because these settings are usually done in the vendor-specific manner. It is not in the specification but most applications (I am sure Tomcat is one of them since so many people seem to use it) provide this as an enhancement.
About | Sitemap | Contact