by vbezhenar · 7y ago · 0 comments
May be your framework is just restarting automatically very fast. That's not a hot reload, though.
If you can't tell the difference, then what's the difference?
There are plenty of ways to reload classes in the JVM as well - OSGi is the most well known and popular. If an agent is the only way you've seen reloading done, then you mustn't have much experience with the full range of libraries and frameworks available on the JVM.
Granted, there are advantages to things like JRebel that can also preserve state, but I feel like that is really orthogonal to the whole discussion.
tomcat using exploded wars hot reloads out of the box. run it inside intellij and it is even easier.
The Play framework uses classloaders to keep library classes (which are stateless) loaded, while reloading app code.
The JVM has build in hot swapping for cases where signatures don't change.
And then JRebel uses proprietary rocket science to do really good hot reloading.
java has had hot reloading of recompiled classes for years.
and if you use dcevm, the number of things that can be hot-reloaded is even higher: http://dcevm.github.io/