JRebel + Tomcat + Eclipse for hot deployment

Source: Internet
Author: User
Tags java web

The Jrebel enables rapid thermal deployment, saving a lot of restart time and improving personal development efficiency.


One:

For:

https://zeroturnaround.com/software/jrebel/download/prev-releases/

This is now the newest version of Jrebel-6.0.0-nosetup.zip

Https://zeroturnaround.com/software/jrebel/download/thank-you/?file=jrebel-6.0.0-nosetup.zip


Two:

Download Eclipse eclipse-jee-luna-sr1-win32-x86_64.zip

After opening, in market, enter Jrebel, install Jrebel plug-in


Three:

Configure server, here with TOMCAT7

Create a new Maven WebApp project (this is the shop, other Java Web projects are also available), then right-click Run as-

Open the configuration in Servers Server.xml

Put

<context docbase= "Shop" path= "/shop" reloadable= "true" source= "Org.eclipse.jst.jee.server:shop"/>

In the

Reloadable Change to False


Four:

Register Jrebel License

Open page: https://zeroturnaround.com/software/jrebel/trial/

Fill in the Name,email and other information on the right, you can apply for license


Five:

Select Help-Jrebel Config Center to open the Jrebel configuration centre

1: In Overview tab. Right Licensing fill in the upper application of the license

2: Left servers, tick the previous step to run the server

3: Lower left side projects, tick the items that need to be developed


4: Switch to Advanced tab, on the top right side of the Jrebel agent

Select Other Jrebel.jar Select the first step to download the file (pre-extract, do not extract to Chinese, blank directory) Jrebel.jar


Six:

Start Tomcat to view console output

Jrebel:starting Logging to File:c:\users\administrator\.jrebel\jrebel.log
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 JRebel: #############################################################
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 Jrebel:jrebel Legacy Agent 6.0.0 (201410311556)
2014-11-22 12:04:59 JRebel: (c) Copyright Zeroturnaround as, Estonia, Tartu.
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 Jrebel:over The last 1 days JRebel prevented
2014-11-22 12:04:59 Jrebel:at least 1 redeploys/restarts saving you about 0 hours.
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 jrebel:licensed to Apache Hadoop
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 Jrebel:license type:evaluation
2014-11-22 12:04:59 Jrebel:valid From:november 21, 2014
2014-11-22 12:04:59 jrebel:valid Until:december 5, 2014
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 jrebel:you is using an EVALUATION license.
2014-11-22 12:04:59 Jrebel:days left until license expires:13
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 jrebel:to Extend your evaluation or purchase a license,
2014-11-22 12:04:59 jrebel:contact [email protected]
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 jrebel:if You think "an" error, contact [email protected]
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 JRebel:
2014-11-22 12:04:59 JRebel: #############################################################
2014-11-22 12:04:59 JRebel:

When you see an output like this, it means success.

2014-11-22 12:05:02 jrebel:directory ' E:\eclipse-jee-kepler-SR2-win32-x86_64\src\shop\build\classes ' 'll be Monitored for changes.
2014-11-22 12:05:02 jrebel:directory ' E:\eclipse-jee-kepler-SR2-win32-x86_64\src\shop\WebContent ' would be monitored For changes.


Next, you can start development, hot deployment





JRebel + Tomcat + Eclipse for hot deployment

Related Article

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.