What are the benefits of JRebel? [closed]

北城余情 提交于 2019-12-04 02:49:13

问题


I've been checking out JRebel. According to their site:

"JRebel is an anything-Java plugin that speeds up JVM-based development (Java, Scala, Groovy) by reloading changes made in your workspace into a running JVM, without restarts or redeploys, maintaining the state of the application while you’re coding."

This seems to be the same as what we're already achieving with Eclipse, Netbeans and IntelliJ: we save and our changes are deployed instantly. What additional benefit(s) would JRebel give us?

Could someone explain it to me?


回答1:


The IDE (Eclipse, NetBeans or IntelliJ) automatically redeploy the application if configured so, which is not instant. Basically, it is just the automation that still results in real redeployment of the application, including creating of a new classloader and all the complementary stuff that is involved into initialization process.

In some cases, IDE in combination with some containers can preserve the session state - if that works for you that's awesome. If not - here you go - JRebel is the answer.

In case of packaged deployment the build phase adds up, but by using JRebel you just eliminate that all at once.




回答2:


Some changes are not possible to reload especially when changing jar files classes without having to reload or restart the server (whatever server you are using). It automatically changes the compiled classes in the server and are automatically reloaded in your classpath.

When you are saving and refreshing changes in your IDE, you are basically rebuilding the war file and redeploying it on the server. This process can still slow down especially when redeploying large applications with multiple jar files and war files and all the classpath has to be refreshed.




回答3:


JRebel isn’t An IDE plugin. JRebel comes pre-bundled with the plugins for Eclipse, IntelliJ IDEA, NetBeans and JDeveloper, however, JRebel agent is designed to be IDE-agnostic and can be used outside the IDE.

If you have questions What JRebel is and what it is not? here is a link that can provide all the answers that you are looking for:

What JRebel is and what it is not?

Here is a video about JRebel:

JRebel video



来源:https://stackoverflow.com/questions/12393509/what-are-the-benefits-of-jrebel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!