且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 JBOSS AS 启动时查找特定服务是否正在运行/启动?

更新时间:2023-12-03 22:40:04

当你说JBoss AS"服务时,我猜我们在谈论 7.x 版本的 JBoss,因为以后的版本要么被命名为 Wildfly(社区版)) 或 JBoss EAP(企业版).

When you say "JBoss AS" service, I guess that we are talking about JBoss in version 7.x, because later versions are either named Wildfly (community edition) or JBoss EAP (enterprise edition).

JBoss 文档 解释了两种不同的部署模式:自动或手册.如果您没有更改配置文件 standalone.xml 中的任何内容(因为您正在启动此配置),那么自动模式可能处于活动状态.在这种情况下,JBoss AS 会自动部署您的应用程序(您将其命名为服务")并通过标记文件指示状态(有关更多详细信息,请参阅 此处).

The JBoss documentation explains the two different deployment modes: automatic or manual. If you did not change anything in the configuration file standalone.xml (as your are starting this configuration), then the automatic mode may be active. In this case JBoss AS deploys your application (which you name "service") automatically and indicates the status by a marker file (for more details see here).