如何获取Java“热代码替换”在JBoss工作? [英] How do I get Java "hot code replacement" working in JBoss?

查看:281
本文介绍了如何获取Java“热代码替换”在JBoss工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行JBoss 4.0.3.SP1_CP04,并使用Eclipse 3.4.1的调试器将其连接到JDK 1.6.0_11。



当我做一个未成年人更改为一种方法(例如将逻辑中的+ 1更改为+ 2)并保存,我立即收到一条错误消息对话框,标题为热代码替换失败,错误删除方法未实现 / p>

热代码替换失败的对话框http ://img6.imageshack.us/img6/531/hotcodereplacefailedkp6.png



任何人都可以提出采取步骤让这个工作吗?

解决方案

您想要做的是将其作为爆炸WAR 。通常情况下,如果一个编辑器初始部署本身,那么它会随着它们的更改而管理复制个别文件。



在IntelliJ中,这很容易。我从来没有从Eclipse做过,但这个项目是你最好的选择。


I am running JBoss 4.0.3.SP1_CP04 and connecting to it with Eclipse 3.4.1's debugger, both using JDK 1.6.0_11.

When I make a minor change to a method (e.g. changing a "+ 1" in the logic to a "+ 2") and save it, I immediately receive an error message dialog titled "Hot Code Replace Failed" with the error "Delete method not implemented"

Hot code replace failed dialog http://img6.imageshack.us/img6/531/hotcodereplacefailedkp6.png

Can anyone suggest steps for getting this to work?

解决方案

What you want to do is deploy to JBOSS as an exploded WAR. Typically, if an editor does the initial deploy itself, it will then manage copying individual files over as they change.

In IntelliJ, this is easy. I have never done it from Eclipse, but this project is your best bet.

这篇关于如何获取Java“热代码替换”在JBoss工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆