The tools of the Rookie tutorial use (v)--jrebel with Tomcat integration with Windows services

Source: Internet
Author: User

Previously wrote an article on Tomcat support for hot deployment with Jrebel-" enable Tomcat to support hot deployment with Jrebel ."

The configuration in the development and test environment is introduced. But the formal deployment environment. We do not start Tomcat from the command line, which is generally made into a system service. The previous configuration, however, does not work for Tomcat as a service. So let's introduce today how to configure Tomcat for system service Jrebel.


There are three ways to configure it, the first being before Tomcat is made into service, and the latter two after Tomcat is made into service. Here are some of our separate introductions:


The first way:

Assuming you haven't made Tomcat into a system service yet, you can configure it in one of the following ways: Find the folder where Tomcat is located. Go to the Bin folder to open the Service.bat file with a tool such as Notepad or Notepad. Find "--jvmoptions". After adding "-javaagent:d:\jrebel-5.6.3-crack\jrebel.jar" (without the quotes, the detailed path is configured according to your own condition) on the last side of the change, for example the following:

--jvmoptions "-dcatalina.home=%catalina_home%;-dcatalina.base=%catalina_base%;-djava.endorsed.dirs=%catalina_ Home%\endorsed;-djava.io.tmpdir=%catalina_base%\temp;-djava.util.logging.manager= Org.apache.juli.classloaderlogmanager;-djava.util.logging.config.file=%catalina_base%\conf\logging.properties; -javaagent:d:\jrebel-5.6.3-crack\jrebel.jar "^

Save and close the file. You can then install the Tomcat through the command line as a Windows service.

Assuming that you already have Tomcat services on your server today, this is not the way to go, and you want to integrate Jrebel only in the following two ways.


Another way:

Assuming that the server already has Tomcat services, you can choose to configure Jrebel in the way that follows.

Go to the Tomcat folder and locate "Tomcat7w.exe" under the Bin folder.





Double-click Open, switch to the Java tab, and Add "-javaagent:d:\jrebel-5.6.3-crack\jrebel.jar" to the last face ofthe Java options.




Then click "OK" to do so.



The Third Way:

Another way to configure Jrebel with the presence of the Tomcat service is to change the register. Open the Registration form. Locate the following node:

Hkey_local_machine\software\apache software Foundation\procrun 2.0\htfty\parameters\java.


64-bit system. Tomcat's registry path:

Hkey_local_machine/software/wow6432node/apache software foundation/procrun 2.0/tomcatx/Parameters/Java

Find the "Options" and edit the same at the end to add "-javaagent:d:\jrebel-5.6.3-crack\jrebel.jar".



You can save it last. Personally think the change of the register is relatively troublesome, so put it to the end, recommend you choose the front two ways.

It's here today. See you next time!



The tools of the Rookie tutorial use (v)--jrebel with Tomcat integration with Windows services

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.