Homepage
 
Search
ERICSSON GLOBAL
Tips & tricks - December 2003 
*
 
Membership
Membership
Get knowledge, support and experience in our free developer program.
Log in
User name
Password

Skip restarting the Tomcat for application/code verification after re-compiling.

Friday, December 19, 2003
In order to avoid restarting Tomcat every time you do code changes and re-compiling, add the context tag in the Tomcat conf/server.xml file.

The Context element represents a web application.

docBase: The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (WAR).

path: The context path of this web application, which is matched against the beginning of each request URI to select the appropriate web application for processing.

crossContext: Set to true if you want calls within this application to ServletContext.getContext() to successfully return a request dispatcher for other web applications running on this virtual host.

reloadable: Set to true if you want 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 it requires significant runtime overhead and is not recommended for use on deployed production applications.

E-mail this page icon Tell your friends    Send this page    Send this page    Send this page   Send this page   Send this page Printable version icon Printable version

Last published February 17, 2007
The latest poll
How much are you willing to pay for an app?
Not more than USD 1
Between USD 1 to 2
Between USD 2 to 5
Not more than USD 7
 
Opinion column
Personal thoughts and analysis on business and technology.