-->

mercredi 12 février 2014

Hot-swap with Dynamic Code Evolution VM

Introduction :

I am currently working in my business on a project that contains over thirty sub maven projects. To do programming very well, we have to use every minute a java debboger this is a good link to know how to debbug java program in eclipse). I have presented in this context, the dcevm framework, and it's pleasure to share this experience with all. 

First Step : What is  DCEVM : 

I found this definition in the Dynamic Code Evolution VM site 
The Dynamic Code Evolution Virtual Machine (DCE VM) is a modification of the Java HotSpot(TM) VM that allows unlimited redefinition of loaded classes at runtime. The current hotswapping mechanism of the HotSpot(TM) VM allows only changing method bodies. Our enhanced VM allows adding and removing fields and methods as well as changes to the super types of a class.
For me, it's simple to define DCEVM : 
Is a technique that allows to modify java source code without restart or redeploy your packaging.

Second Step : Installation: 

The installation is so simple : 
1. You should download the jar file from dcevm site, there are many jar package for windows, mac and linux :
If you don't see your JVM version, you can get the sources and compil it to get the right version.

2. Now to lunch the installer under windows, you should write in command line the command : 
 java -jar dcevm-0.2-win.jar  


After this step, we will install the new JVM, to do this just click on install : 


3. To verify installation, you should turn application in debug mode.

Aucun commentaire :

Enregistrer un commentaire