aspose file tools*
The moose likes Tomcat and the fly likes Hot Deployment of Individual Class/JSP Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Hot Deployment of Individual Class/JSP Files" Watch "Hot Deployment of Individual Class/JSP Files" New topic
Author

Hot Deployment of Individual Class/JSP Files

Jack J. Jackson
Greenhorn

Joined: Apr 20, 2002
Posts: 27
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.


Jack
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You could always write your own classloader.
Other than that, I think only JSPs can be reloaded individually.
Everything else is App-Wide.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
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


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hot Deployment of Individual Class/JSP Files