热部署

1.          热部署的含义

所谓热部署,就是在应用正在执行的时候升级软件,却不须要又一次启动应用。

对于Java应用程序来说,热部署就是在执行时更新Java类文件。在基于Java的应用server实现热部署的过程中,类装入器扮演着重要的角色。大多数基于Java的应用server,包含EJBserver和Servlet容器,都支持热部署。类装入器不能又一次装入一个已经装入的类,但仅仅要使用一个新的类装入器实例,就能够将类再次装入一个正在执行的应用程序。

2.          Tomcat的热部署

1)        下载myeclipse中tomcat-link插件

2)        将com.sysdeo.eclipse.tomcat_3.3.0放到

D:\program files\Genuitec\Common\plugins

3)        打开D:\program files\Genuitec\MyEclipse8.5\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info文件,在最后加上

com.sysdeo.eclipse.tomcat,3.3.0,file:/D:/programfiles/Genuitec/Common/plugins/com.sysdeo.eclipse.tomcat_3.3.0/,4,false

4)        重新启动MyEclipse 8.5就会发现MyEclipse中多了例如以下几个图标

.

5)        配置tomcat的home文件夹

6)        配置tomcat 中jvm的參数

-javaagent:D:\JRebel\jrebel.jar  指向你电脑jrebel.jar存放的路径

-Drebel.spring_plugin=true   支持spring框架

-Drebel.aspectj_plugin=true   支持aspectj

-Drebel.struts2_plugin=true   支持struts2

-Drebel.hibernate_plugin=true 支持hibernate

-noverify

7)        启动Tomcat,会发现例如以下日志,说明热部署成功了:

[2014-11-01 21:55:28]

[2014-11-01 21:55:28]#############################################################

[2014-11-01 21:55:28]

[2014-11-01 21:55:28]  JRebel 5.0.0 (201206080930)

[2014-11-01 21:55:28]  (c) Copyright ZeroTurnaround OU, Estonia,Tartu.

[2014-11-01 21:55:28]

[2014-11-01 21:55:28]  Over the last 1 days JRebel prevented

[2014-11-01 21:55:28]  at least 0 redeploys/restarts saving youabout 0 hours.

[2014-11-01 21:55:28]

[2014-11-01 21:55:28]  This product is licensed to Unlimited

[2014-11-01 21:55:28]  For FUN! Unlimited! Enjoy!

[2014-11-01 21:55:28]

[2014-11-01 21:55:28]  The following plugins are disabled at themoment:

[2014-11-01 21:55:28]  * Apache MyFaces plugin (set-Drebel.myfaces_plugin=true to enable)

[2014-11-01 21:55:28]  * Click plugin (set -Drebel.click_plugin=trueto enable)

[2014-11-01 21:55:28]  * JRuby Plugin (set -Drebel.jruby_plugin=trueto enable)

[2014-11-01 21:55:28]  * Jersey plugin (set-Drebel.jersey_plugin=true to enable)

[2014-11-01 21:55:28]  * Oracle ADF Core plugin (set-Drebel.adf_core_plugin=true to enable)

[2014-11-01 21:55:28]  * Oracle ADF Faces plugin (set -Drebel.adf_faces_plugin=trueto enable)

[2014-11-01 21:55:28]  * Seam-Wicket plugin (set-Drebel.seam_wicket_plugin=true to enable)

[2014-11-01 21:55:28]  * WebObjects plugin (set-Drebel.webobjects_plugin=true to enable)

[2014-11-01 21:55:28]

[2014-11-01 21:55:28]#############################################################

[2014-11-01 21:55:28]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值