Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limitations with Java Hotswap

The java hotswap feature save a lot of time for me. However, it has many limitations (like schema change is not supported). Any idea if the limitation is going to be addressed any sooner? According to this forum entry, it seems to be ignored.

I know that products like JRebel helps. But does anyone know about any open source tools for this?

like image 552
amit Avatar asked Feb 11 '09 15:02

amit


People also ask

What is Java HotSwap?

Java IDEs and VMs support a feature called HotSwapping. It allows you to update the version of a class while the virtual machine is running, without needing to redeploy the webapp, restart, or otherwise interrupt your debugging session. It's a huge productivity boost if you're editing the body of a method.

How do I enable HotSwap in Intellij?

Reload all files Recompilation happens automatically if the Build project before reloading classes option is enabled in Settings/Preferences | Build, Execution, Deployment | Debugger | HotSwap. If this option is disabled, you need to recompile the files before reloading (Build | Recompile Ctrl+Shift+F9 ).


2 Answers

You can check out Dynamic Code Evolution VM (also at http://java.net/projects/dcevm)

like image 159
Tan Hui Onn Avatar answered Sep 29 '22 02:09

Tan Hui Onn


JavaRebel is a good tool, but it need you purchase.

I'd like advice to you use hotswaping ant tool:

http://www.asjava.com/core-java/how-to-hotswap-java-code-into-jvm-redefinition-example/

like image 26
Kim.R Avatar answered Sep 29 '22 01:09

Kim.R