JavaRebel 提高开发效率

 据不完全统计,在开发web应用的时候每次重启web服务器每天每个程序员所花费的时候可以按小时计算。

每次等服务器启动都不是一件愉快的经历。

使用javarebel可以动态加载修改的类,不用每次重启web服务器。

  • 安装

1 下载javarebel  http://www.zeroturnaround.com/javarebel/

2 修改jvm参数

  • 测试

checkpoint 1:控制台

checkpoint 2: 动态加载

以helloword portlet演示一下效果

找到显示内容的代码 HelloWorldPortlet 并修改

 

 保存 编译代码 控制台显示重新加载类

JavaRebel: Reloading class 'com.liferay.portlet.helloworld.HelloWorldPortlet'.

刷新页面动态加载成功

 

BTW:Can we get the free license?

http://www.zeroturnaround.com/blog/javarebel-for-open-source-development/

 

Blogs
Java Rebel increases efficiency of web development.
According to the unofficial estimation, it is possible for each developer to calculate labour hour in daily for web services re-starting under web-development.
It is not unpleasant experience of waiting for server startup.
Using javarebel may add on dynamic modification, need not to re-start web server every time.

JavaRebel 提高開發效率
 據不完全統計,在開發web應用的時候每次重啟web服務器每天每個程序員所花費的時候可以按小時計算。
每次等服務器啟動都不是一件愉快的經曆。
使用javarebel可以動態加載修改的類,不用每次重啟web服務器。

By Gavin Wan, On 7/28/08 6:44 AM
This Wiki page also helps a lot:

http://www.liferay.com/web/guest/community/wiki/-/wiki/1071674/Fast+Development+of+Liferay+Core+with+Tomcat
你好,我按照你上面设置 修改java文件后 控制台 没有JavaRebel: Reloading class 'com.liferay.portlet.helloworld.HelloWorldPortlet'. 提示
不是马上就有效果呀 但是过 一分钟左右才有效果呀 请问是啥原因 谢谢