I'm using JBoss AS 4.2.3.GA and I want to make it to hot reload changed classes. Now, I have a running JBoss AS with deployed exploded war, after changing (recompiling) some classes, it starts to redeploy all war:
我用JBoss作为4.2.3。GA和我想让它变成热重载改变的类。现在,我有一个正在运行的JBoss和部署的war一样,在修改(重新编译)一些类之后,它开始重新部署所有的war:
14:14:03,732 INFO [StandardContext] Reloading this Context has started
14:14:03,732 INFO [StandardContext]重载此Context已经开始
and redeployment takes a very long time. I want to avoid such time wasting, and maybe there is a way to tell JBoss, just to replace changed class files w/o redeploying all the war?
重新部署需要很长时间。我想避免这样的时间浪费,也许有一种方法可以告诉JBoss,仅仅是替换所有war的w/o类文件?
I've also tried reloadable="true"
in
我还尝试了reloadable="true"
jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml
默认jboss-4.2.3.GA \ server \ \ \ jboss-web.deployer \ server.xml部署
But, perhaps, that's not what i seek. I don't know if it matters, but the exploded war's directory is external to server's /default/deploy/ dir. All my classes are in WEB-INF/classes dir.
但是,也许,这不是我想要的。我不知道它是否重要,但是这个爆发战争的目录是服务器/缺省/deploy/ dir的外部目录。我所有的类都在WEB-INF/classes目录中。
1 个解决方案
#1
1
You probably need to research framework-specific solutions. Look for OSGi, Spring Dynamic Modules, JEE6 dependency injection.
您可能需要研究特定于框架的解决方案。寻找OSGi、Spring动态模块、JEE6依赖注入。
Also, there may be an Eclipse plugin that will facilitate this for you. I know there is one for Glassfish and JEE6.
此外,可能还有一个Eclipse插件可以帮助您实现这一点。我知道有一种是玻璃鱼和JEE6。
What technology are you developing this with?
你用什么技术开发这个?
#1
1
You probably need to research framework-specific solutions. Look for OSGi, Spring Dynamic Modules, JEE6 dependency injection.
您可能需要研究特定于框架的解决方案。寻找OSGi、Spring动态模块、JEE6依赖注入。
Also, there may be an Eclipse plugin that will facilitate this for you. I know there is one for Glassfish and JEE6.
此外,可能还有一个Eclipse插件可以帮助您实现这一点。我知道有一种是玻璃鱼和JEE6。
What technology are you developing this with?
你用什么技术开发这个?