Hot deployment and tomcat hot deployment
1. Meaning of hot deployment
Hot deployment means upgrading the software while the application is running without restarting the application.
For Java applications, hot deployment is to update Java files at runtime. The Class Loader plays an important role in the hot deployment of Java-based application servers. Most Java-based application servers, including EJB servers and Servlet containers, support hot deployment. The Class Loader cannot reload a mounted class. However, if a new class loader instance is used, the class can be loaded into a running application again.
2. Hot deployment of Tomcat
1) download the tomcat-link plug-in myeclipse
2) Place com. sysdeo. eclipse. tomcat_3.3.0
D: \ program files \ Genuitec \ Common \ plugins
3) Open the D: \ program files \ Genuitec \ MyEclipse8.5 \ configuration \ org. eclipse. equinox. simpleconfigurator \ bundles.info file, and add
Com. sysdeo. eclipse. tomcat, 3.3.0, file:/D:/programfiles/Genuitec/Common/plugins/com. sysdeo. eclipse. tomcat_3.3.0/, 4, false
4) Restart MyEclipse 8.5 to find the following icons in MyEclipse:
.
5) configure the home Directory of tomcat
6) Configure jvm parameters in tomcat
-Javaagent: D: \ JRebel \ jrebel. jar point to the path where jrebel. jar is stored on your computer.
-Drebel. spring_plugin = true supports spring framework
-Drebel. aspectj_plugin = true supports aspectj
-Drebel. struts2_plugin = true supports struts2
-Drebel. hibernate_plugin = true supports hibernate
-Noverify
7) When Tomcat is started, the following logs are displayed, indicating that the hot deployment is successful:
[21:55:28]
[21:55:28] ##################################### #########################
[21:55:28]
[21:55:28] JRebel 5.0.0 (201206080930)
[21:55:28] (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
[21:55:28]
[21:55:28] Over the last 1 days JRebel prevented
[21:55:28] at least 0 redeploys/restarts saving youabout 0 hours.
[21:55:28]
[21:55:28] This product is licensed to Unlimited
[21:55:28] For FUN! Unlimited! Enjoy!
[21:55:28]
[21:55:28] The following plugins are disabled at themoment:
[21:55:28] * Apache MyFaces plugin (set-Drebel.myfaces_plugin = true to enable)
[21:55:28] * Click plugin (set-Drebel. click_plugin = trueto enable)
[21:55:28] * JRuby Plugin (set-Drebel. jruby_plugin = trueto enable)
[21:55:28] * Jersey plugin (set-Drebel.jersey_plugin = true to enable)
[21:55:28] * Oracle ADF Core plugin (set-Drebel.adf_core_plugin = true to enable)
[21:55:28] * Oracle ADF Faces plugin (set-Drebel. adf_faces_plugin = trueto enable)
[21:55:28] * Seam-Wicket plugin (set-Drebel.seam_wicket_plugin = true to enable)
[21:55:28] * WebObjects plugin (set-Drebel.webobjects_plugin = true to enable)
[21:55:28]
[21:55:28] ##################################### #########################
[21:55:28]
Tomcat hot deployment
There will be a server file in the server you created. Set the server. mxl tag Host autoDeploy = "true" under the conf file to the image!
Tomcat hot deployment
There will be a server file in the server you created. Set the server. mxl tag Host autoDeploy = "true" under the conf file to the image!