JBoss热部署 - 如何让JBoss“看到”改变? [英] Hot deploy on JBoss - how do I make JBoss "see" the change?

查看:136
本文介绍了JBoss热部署 - 如何让JBoss“看到”改变?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Java EE应用程序,我在开发过程中一次又一次地部署在本地的JBoss安装中。我想通过将应用程序直接部署到[JBOSS] / server / default / deploy / myApp中来加快构建速度。

I am developing a Java EE application that I deploy over and over again on a local JBoss installation during development. I want to speed up the build by hot deploying my application straight into [JBOSS]/server/default/deploy/myApp

似乎有效 - 但是似乎还有在硬部署和JBoss启动新类之间是一个有点任意的延迟。我不是很熟悉JBoss,但我认为它缓存类,这是导致问题的原因。

It seems to work - but there also seems to be a somewhat arbitrary delay between the hard deploy and when JBoss starts using the new classes. I am not very familiar with JBoss, but I assume it caches classes, and that this is what causes the problem.

我是正确的,如果是,如何让JBoss刷新它的缓存?

Am I correct, and if so, how do I make JBoss flush it's cache?

推荐答案

我的捆绑包中有同样的问题:(Eclipse IDE + JBoss服务器适配器)+ JBoss AS 7.0.1(社区项目)

I had the same problem in my bundle: (Eclipse IDE + JBoss server adapter) + JBoss AS 7.0.1 (community project).

我的解决方案非常简单 - 您应该去JBoss管理面板(默认为localhost:9990),在配置文件设置中打开Core - Deployment Scanners。打开Autodeploy-Exploded(设置为true),根据您的需要,您可以将扫描仪时间(默认为5000 ms)设置为适合您的(我设置为2000,在Eclipse中进行更多更快速的增量发布时) 。而已。现在JBoss使得HOT不仅可以部署HTML(JSF,XHTML等)文件,还可以处理POJO类(bean等)文件。

My solution is very simple - you should go to JBoss administrative panel (by default localhost:9990), there in profile settings open Core - Deployment Scanners. Turn on Autodeploy-Exploded (set to true), and by your wishes you can set scanner time (by default 5000 ms) to appropriate for your (I set to 2000, for more fast incremental publish in Eclipse when I make changes to projects). That's it. Now JBoss makes HOT deploy not only for HTML (JSF, XHTML and so on) files, but also takes care of POJO classes (beans and so on) files.

这篇关于JBoss热部署 - 如何让JBoss“看到”改变?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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