在不重启 JBoss 的情况下部署 java 类文件 [英] Deploying java class files without restarting JBoss
问题描述
我想知道是否可以在不重新启动 JBoss 服务器的情况下部署 java 类文件.我使用的是 jboss v4.2.2.
I would like to know if its possible to deploy java class files without restarting JBoss server. I am using jboss v4.2.2.
此外,当我尝试部署 jsp 文件时,它工作正常,服务器几乎立即接收更改.
Also, when I try to deploy jsp files, it works fine and server picks up the changes almost instantly.
非常感谢 :)
推荐答案
我使用 Tomcat 比使用 JBoss 更好,但是应该可以(就像在 Tomcat 中一样)在不重新启动应用服务器的情况下重新启动应用程序.如果服务器具有开发模式"并且处于活动状态,那么应该可以通过 touch
ing WEB-INF/web.xml
来触发应用程序重启,即更新其时间戳.这应该会加载您之前替换的类文件.
I'm better with Tomcat than JBoss, but it should be possible (as in Tomcat) to restart the application without restarting the app server. If the server has a "development mode" and this is active, then it should be possible to trigger an app restart simply by touch
ing WEB-INF/web.xml
, i.e. updating its timestamp. That should get your previously replaced class file loaded.
这篇关于在不重启 JBoss 的情况下部署 java 类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!