1

I just want to know how to make automatic reflect on web application if i make changes in my servlets class file . Because when ever I make changes in servlets class file I have to do server shutdown and startup Otherwise go to tomcat web application manager And reload the web-application Is there another method which automatic do this

Sajid Dayer
  • 11
  • 1
  • 4

2 Answers2

1

Set <Context reloadable="true" />, Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development. But not in production environment. See the reloadable doc.

Edit:

How to set context

Community
  • 1
  • 1
SatyaTNV
  • 4,137
  • 3
  • 15
  • 31
-1

Edit install_dir/conf/server.xml and add a DefaultContext subelement to the main Service element and supply true for the reload able attribute Add

 <DefaultContext reloadable="true"/> 

before the

</host> 

tag.

Marian
  • 144
  • 2
  • 11