• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reloading

 
pravanya Gullapudi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to reload the servlet automatically?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is dependent on the container that you might use. Some has the option to automatically do it as and when you make changes to your servlet!
 
Hussam Bamatraf
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat can reload your servlets if there is any change by specifying reloadable attribute to true in the Context element in server.xml file or your web application configuration file.
For example, go to <tomcat_home>\conf\Catalina\localhost\ and locate your_application_name.xml file (if your application config file is not listed here you can check for the <Context> attribute inisde server.xml file or create a new file with your application name inside <tomcat_home>\conf\Catalina\localhost\ folder), then add reloadable="true" as following:

if you create a new file configuration the above script is enough.
Please be warned the reloadable web application is much slower; therefore, it is not suitable for production use (use it for development stage only).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!