java - How Hot Code Swapping Works -
I am programming in Java, and I really enjoy Netbeans and other IDE features that make you Allows your program to write an application in Java while debugging without restarting it, which would be beneficial if I can update it on the fly without restarting it. I had the idea of having a second jar that could have been run when I updated, which IDE would be able to do such a thing, but I have no clue how to swap the code. Can someone illuminate me? While using the JDI (Java Debug Interface) IDE like Eclipse when debugging,
This is the Java API's Is a collection that allows you to create / attach external Java virtual machines. It can be used in conjunction with a Java agent, which can be used to redefine the classes in the virtual machine. What happens during debug mode, create a new virtual machine with your code running in it. When you do an edit and recompile; To get an eclipse, JVM has been told to redefine the classes that were changed by you.
You can read, and put a glance at it (which is used to configure the class -transformer) Specifically here is a related question (launch a new JVM) .
Comments
Post a Comment