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 ." Describes the configuration in the development, test environment, but the formal deployment environment, we do not use the command line to start Tomcat, generally is to make Tomcat 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. Let's introduce each of the following:


The first way:

If you have not yet made Tomcat into a system service, you can configure it in the following way: Find the directory where Tomcat is located, enter the bin directory with tools such as Notepad or Notepad to open the Service.bat file and find "--jvmoptions ", add"-javaagent:d:\jrebel-5.6.3-crack\jrebel.jar "on the last side (without the quotation marks, the specific path is configured according to your own situation) after modification as follows:

--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, close the file, and then install the Tomcat through the command line as a Windows service. If you now have Tomcat services on your server, then this is not the way it is, and you want to integrate Jrebel can only be implemented in the following two ways.


The second way:

If the server already has Tomcat services, then you can choose to configure Jrebel in this way. Enter the Tomcat directory to find the "Tomcat7w.exe" in the bin directory,





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




Then click "OK".



The Third Way:

There is also a way to configure Jrebel with the presence of the Tomcat service, which is to modify the registry. Open the registry and 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 them, adding "-javaagent:d:\jrebel-5.6.3-crack\jrebel.jar"at the end,



You can save it last. Personally feel that the modification of the registry is relatively troublesome, so put it to the end, recommend you choose the previous two ways. Come here today, see you next time!



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

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.