Tomcat 7.x Hot Deployment

Source: Internet
Author: User

Because in the development phase, the need to frequently modify the source code, if each time the code is changed to restart the server to detect the effect, it is simply troublesome to you want to die, and delay time, so, in the internet for a long, finally found a solution, special to share

I also tried to modify the Server.xml configuration file, but setting the reloadable= "true" property is still not good, and is modified in the <Context> configuration to be valid for all items.

(1) Modify the context.xml under Conf in the Tomcat 7.x installation directory and add the reloadable= "true" property on the <Context> node.

<context reloadable= "true" >
Intermediate data without modification
</context>

(2) Enter the JDK 7.x, myeclipse-> preference, and populate-dcom.sun.management.jmxremo in optional Java VM arguments Te=true such as:

(3) Deployment complete.

Note: This way of hot deployment, not only the code class files will be automatically deployed, configuration class file modification will also be automatically deployed, can greatly save development wait time.

Tomcat 7.x Hot Deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.