alok.s.jadhav
alok.s.jadhav

Reputation: 71

Tomcat server - restart need when method signature changes

When I change method signature of Controller class, eclipse ask if server need to be restarted. Why do we need to restart server in this case for change to be reflected? For any other changes in class file NO restart is needed but the changes done are reflected.

Upvotes: 3

Views: 178

Answers (1)

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 341003

You are using a mechanism called Hot Swap which allows you to change method body without restarting the JVM. Unfortunately this is the only supported mechanism. Check out (commercial) which supports many other refactorings/changes.

Upvotes: 3

Related Questions