Jrebel 的配置及使用(实现WEB应用的热部署)
来源:互联网 发布:oracle数据字典 报错 编辑:程序博客网 时间:2024/06/05 17:54
1. 配置tomcat服务器:修改tomcat的部署配置为:从不自动发布,禁用Web模块的自动从新装入为:禁用
2. 在tomcat运行配置上添加vm参数:-noverify -javaagent:D:\RUNTIME\jrebel\jrebel.jar -Dmyproject.root=D:/project/operamasks/workspaces/xxxx -Drebel.disable_update=true
其中:-javaagent的值表示jrebel的jar包路径
-Dmyproject.root的值表示当前的需要热部署的工程路径
3. 在工程的src源文件夹下添加名称为:rebel.xml的配置文件,内容格式如下:
- <?xml version="1.0" encoding="UTF-8"?>
- <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
- <classpath>
- <dir name="${myproject.root}/bin">
- </dir>
- <dir name="${myproject.root}/web/WebContent/WEB-INF/classes">
- </dir>
- </classpath>
- <web>
- <link target="/">
- <dir name="${myproject.root}/web/WebContent">
- </dir>
- </link>
- </web>
- </application>
<?xml version="1.0" encoding="UTF-8"?><application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd"><classpath><dir name="${myproject.root}/bin"></dir><dir name="${myproject.root}/web/WebContent/WEB-INF/classes"></dir></classpath><web><link target="/"><dir name="${myproject.root}/web/WebContent"></dir></link></web></application>
其中:myproject.root就是tomcat vm参数中指定的工程路径,你也可以使用绝对路径
这个文件定义的就是jrebel要监控的具体文件夹,即class文件和资源文件(比如:jsp等)
4.最后,启动tomcat服务器的成功提示:
Fri Oct 19 10:34:29 CST 2012 com.zeroturnaround.javarebel.hD#new V( false )
Fri Oct 19 10:34:29 CST 2012 com.zeroturnaround.javarebel.bH#public boolean a(byte abyte0[])
#############################################################
JRebel 3.0-M1 (200910151623)
(c) Copyright ZeroTurnaround, Ltd, 2007-2009. All rights reserved.
A rough estimate: Over the last 5 days JRebel
prevented the need for at least 36 redeploys/restarts.
Using industry standard build and redeploy times,
JRebel saved you between 1 and 2 hours.
This product is licensed to Java Hack Organization
for unlimited number of developer seats on site.
#############################################################
- Jrebel 的配置及使用(实现WEB应用的热部署)
- Jrebel 的配置及使用(实现WEB应用的热部署)
- Jrebel 的配置及使用(实现WEB应用的热部署)
- .Myeclipse实现热部署的jrebel 配置
- 使用JRebel进行Java Web项目的热部署
- 使用jrebel来实现J2EE项目的热部署
- 热部署神器-Jrebel的简单使用
- 使用JRebel实现Web项目热部署, 提高开发效率
- Jrebel---Tomcat的热部署
- Eclipse+Jrebel实现web项目热部署
- jrebel配置热部署
- spring boot 使用jrebel配置热部署
- Jrebel实现myeclipse9+Maven+tomcat实现工程的热部署
- JRebel 实现热部署
- JRebel实现热部署
- 使用Jrebel 实现 maven+wildfly10 热部署
- Eclipse使用JRebel插件实现热部署
- IntelliJ IDEA 的 Java 热部署插件 JRebel 安装及使用
- 在Excel中利用VBA编写词组合,可用于起名或推广关键词
- 于IaaS的四个误解和四个猜想
- Android四大组件
- .net中进行时间对比
- SQL优化一例:巧用hint
- Jrebel 的配置及使用(实现WEB应用的热部署)
- Java经典算法集
- Ucenter的用户注册和登录分析
- Eclipse快捷键大全
- 数据库概论(实验三)MYSQL监视器
- linux设备驱动归纳总结(三):2.字符型设备的操作open、close、read、write
- 在虚拟机中不能安装64位系统的问题
- 视频分析工具
- sql server 中 split 函数