• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hot Deployment of Individual Class/JSP Files

 
Jack J. Jackson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to configure Tomcat 5.0.x to allow hot deployment of individual files that change rather than redeploying the entire WAR?

For instance, when I run into a problem with a JSP, I'd like to fix that JSP and deploy only that changed file to wherever I need to so tomcat will recompile the JSP and use it the next time I request that page.

Same for a Java file. I'd like to signal to Tomcat's classloader that the class files it previously loaded need to be discarded and reloaded.

Thx.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always write your own classloader.
Other than that, I think only JSPs can be reloaded individually.
Everything else is App-Wide.
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but why only jsp pages are reloaded each time when i change something in the jsp and save it .
why not a class file(servlet) even after recompiling the same class file???
is there any other way like hot deployment in tomcat4.0 or tomcat 5.0 ?

cinux
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic