This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Hot deployment in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Hot deployment in tomcat" Watch "Hot deployment in tomcat" New topic

Hot deployment in tomcat

amar nath jha
Ranch Hand

Joined: Mar 09, 2006
Posts: 42
Hi ,

I have some doubt regarding

<Context path="/mysite1" docBase="webapps/mysite1"
debug="5" reloadable="true" crossContext="false">
If I specify the above tag in tomcats server.xml
will it make my application (mysite1) eligible for hot deployment .
Or is it version specific .
Robin Rath

Joined: Jan 07, 2008
Posts: 10
Yes you are right.
By using this tag in server.xml you are eligible for hot deployment but it is not version specific.
The main reason to use this tag is when we are developing a web application we may have to change/modify in our source code. So this needs to be complied and we have to stop the tomcat again restart.
So it seems like time taking and boaring. So we are using this context tag to dynamically take the modified class file, no need to stop the tomcat and restart.
I agree. Here's the link:
subject: Hot deployment in tomcat
Similar Threads
Question in getProperty
htaccess and mod_rewrite issue
Problem deploying two war files to one instance of jboss-5.1.0.GA
How to deploy my own directory in Tomcat?
getServletContext() throws NullPointerException