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

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

问题描述

我正在运行 JBoss 4.0.3.SP1_CP04 并使用 Eclipse 3.4.1 的调试器连接到它,两者都使用 JDK 1.6.0_11.

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.

当我对方法进行微小更改(例如将逻辑中的+ 1"更改为+ 2")并保存它时,我立即收到一个标题为热代码替换失败"的错误消息对话框,其中包含错误删除方法未实现"

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"

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

任何人都可以建议步骤以使其正常工作吗?

Can anyone suggest steps for getting this to work?

推荐答案

您想要做的是部署到 JBOSS 作为 爆发战争.通常,如果编辑器自己进行初始部署,那么它会在单个文件发生更改时管理它们的复制.

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.

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

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

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

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