Jrebel configure eclipse

Source: Internet
Author: User
Jrebel installation instructions

If you are interested in Java Development, refer.

In the development environment, Tomcat's support for hot deployment is still relatively weak, resulting in a large waste of time in the development process to restart the service. To improve development efficiency, we decided to introduce jrebel, which had relatively comprehensive support for the hot deployment.

Although jrebel officially claims that there is no memory leakage problem when using jrebel, it certainly occupies a certain amount of resources, so it does not consider using hot deployment in the formal environment. In addition to Tomcat, jrebel also supports jetty, resin, and weblogic. This article describes the Tomcat + eclipse + spring + struts2 environment. After using jrebel, it is expected that it will be enough after the developer starts Tomcat once in the morning.

PS. Rebel provides the free community edition. For details, see:
Http://zeroturnaround.com/blog/free-version-of-jrebel-social/

I. Installation Package preparation

1. jrebel. Jar core jar package, download on the http://zeroturnaround.com/jrebel/prev-releases.

2. update-site.zip jrebel Eclipse plug-in
Http://www.zeroturnaround.com/update-site/update-site.zip

2. Configure eclipse

In eclipse, configure WINDOW> preference> Tomcat> JVM settings and add the following parameters:

-Drebel. spring_plugin = true supports Spring framework

-Drebel. aspectj_plugin = true supports aspectj

-Drebel. struts2_plugin = true supports strut2

-Javaagent: D: \ jrebel. Jar modify the correct jrebel. Jar path here.

-Noverify

If you want to support more frameworks, you can refer to the official website http://www.zeroturnaround.com/jrebel/features/frameworks/

For more parameter configurations, refer to the official website.

Http://www.zeroturnaround.com/jrebel/configuration/

3. Install the Eclipse plug-in

Install jrebel Eclipse plug-in

Help» install new software

Then use the following URL:
Http://www.zeroturnaround.com/update-site/
To download the package offline, you can download the package offline:
Http://www.zeroturnaround.com/update-site/update-site.zip

If you do not use the default jrebel, you must specify the path of the jar package:

4. Configure jrebel. xml

Right-click the project and click Properties to see the jrebel option:

Select the path of the configuration file.

5. start Tomcat and install Tomcat successfully.

When Tomcat is started, the console outputs the following information:

JRebel-Spring: Monitoring Spring bean definitions in 'jar:file:/E:/WorkSpace/JIUCOOL/WebContent/WEB-INF/lib/org.springframework.conf.jar!/spring/config/default/applicationContext.xml'.JRebel-Spring: Monitoring Spring bean definitions in 'E:\WorkSpace\JIUCOOL\WebContent\WEB-INF\config\dataContext.xml'.JRebel-Spring: Monitoring Spring bean definitions in 'E:\WorkSpace\JIUCOOL\WebContent\WEB-INF\config\serviceContext.xml'.JRebel-Spring: Monitoring properties in 'E:\WorkSpace\JIUCOOL\WebContent\WEB-INF\classes\config.properties'.

Indicates that jrebel has been configured successfully.

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.