Changes for page Using DCEVM and Hotswap for rapid turnaround
Last modified by Markus Ruggiero on 2022/07/28 14:18
From version 6.1
edited by Samuel Pelletier
on 2015/07/07 15:15
on 2015/07/07 15:15
Change comment:
There is no comment for this version
To version 9.1
edited by Samuel Pelletier
on 2016/06/12 16:43
on 2016/06/12 16:43
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,27 +1,32 @@ 1 -DCEVM and Hotswap enable rapid turnaround by allowing almost any class change to the running VM. It offers an experience very similar to JRebel for WebObjects developers. 1 +DCEVM and Hotswap enable rapid turnaround by allowing almost any class change to the running VM. It offers an experience very similar to JRebel for WebObjects developers. With this tool, you usually do not have to restart your application after code change. 2 2 3 3 = Prerequisites = 4 4 5 -* A JRE patched with the DCEVM [[http:~~/~~/dcevm.github.io>>url:http://dcevm.github.io||style="line-height: 1.4285715;" shape="rect"]](% style="line-height: 1.4285715;" %)5 +* A JRE patched with the DCEVM 6 6 * (% style="line-height: 1.4285715;" %)The Hotwsap agent to handle the WebObjects caches. 7 7 8 8 === (% style="line-height: 1.4285715;" %)Patching the VM(%%) === 9 9 10 -(% style="line-height: 1.4285715;" %)DCEVM is the patch that enable the enhanced class redefinition in the VM. Download the installer for your JRE version and install the alternative VM. The patch is not always available for the latest update of the JRE, you may try the latest update available but it may not works. At the time I write this, the patch for Java 1.8 update 45is at build 15 and it does notworkscompletely,I get exception because some DelegatingClassLoader are not updated.The version for Java 1.7 update 71 build 2 works fine with java 1.7.0_79.10 +(% style="line-height: 1.4285715;" %)DCEVM is the patch that enable the enhanced class redefinition in the VM. Download the installer for your JRE version and install the alternative VM. The patch is not always available for the latest update of the JRE, you may try the latest update available but it may not works. At the time I write this, the patch for Java 1.8 update 92 works as expected. 11 11 12 - ===(%style="line-height:1.4285715;" %)Hotswapagent(%%)===12 +DCEVM download site: **[[http:~~/~~/dcevm.github.io>>url:http://dcevm.github.io||shape="rect"]] [[attach:JRE settings.png]]** 13 13 14 -(% style="line-height: 1.4285715;" %) Hotwsap agent is an agent (like JRebel) that allows plugins to react to class redefinitionevents. Theseplugins are similar tohe the JRebel pluginsand add frameworks specificcode to makesuretheyreact correctly to the class changes.14 +=== (% style="line-height: 1.4285715;" %)Downloading the Hotswap agent(%%) === 15 15 16 -(% style="line-height: 1.4285715;" %) 16 +(% style="line-height: 1.4285715;" %)Hotwsap agent allows plugins to react to class redefinition events. These plugins are similar to the the JRebel plugins and add frameworks specific code to make sure they handle correctly to the class changes. 17 17 18 +(% style="line-height: 1.4285715;" %)Download the hot swap agent jar from my fork at [[https:~~/~~/github.com/spelletier/HotswapAgent/releases/tag/0.2_with_WO>>url:https://github.com/spelletier/HotswapAgent/releases/tag/0.2_with_WO||shape="rect"]] to an easy to type location, you will need the location to enable it. 18 18 19 -= (% style="line-height:1.4285715;" %)How to use(%%)=20 +=== How to use in a project === 20 20 21 - (%style="line-height:1.4285715;"%)22 +To enable HotSwap for all java launch within eclipse, add the following to the default VM argument of your current JRE. 22 22 24 +-XXaltjvm=dcevm -javaagent:/replace_with_correct_path/hotswap-agent.jar 23 23 24 - (%style="line-height:1.4285715;"%)26 +TO enable per project basis, add the same to the VM argument section of your project's Run configuration. 25 25 28 +=== Known limitations === 26 26 30 +* Change of superclass is not supported by DCEVM. 31 + 27 27 (% style="line-height: 1.4285715;" %)