3.9. 独立服务器配置


3.9.1. 独立服务器配置文件

JBoss EAP XP 包括额外的单机服务器配置文件 standalone-microprofile.xmlstandalone-microprofile-ha.xml

JBoss EAP 中包含的标准配置文件保持不变。请注意,JBoss EAP XP 4.0.0 不支持使用 domain.xml 文件或域模式。

Expand
表 3.1. JBoss EAP XP 中的独立配置文件
配置文件用途包括的功能排除的功能

standalone.xml

这是启动单机服务器时使用的默认配置。

包括服务器的相关信息,包括子系统、网络、部署、套接字绑定和其他可配置的详细信息。

排除消息传递或高可用性所需的子系统。

standalone-microprofile.xml

此配置文件支持使用 MicroProfile 的应用。

包括服务器的相关信息,包括子系统、网络、部署、套接字绑定和其他可配置的详细信息。

排除以下功能:

  • Jakarta Enterprise Beans
  • 消息传递
  • Jakarta EE Batch
  • jakarta Server Faces
  • Jakarta Enterprise Beans 计时器

standalone-ha.xml

 

包含默认子系统,并添加 modclusterjgroups 子系统以实现高可用性。

排除消息传递所需的子系统。

standalone-microprofile-ha.xml

此独立文件支持使用 MicroProfile 的应用。

包括 modclusterjgroups 子系统,以便在默认子系统之外实现高可用性。

排除消息传递所需的子系统。

standalone-full.xml

 

除了默认子系统外,还包括 messaging-activemqiiop-openjdk 子系统。

 

standalone-full-ha.xml

支持每个可能的子系统。

除了默认子系统外,还包括消息传递和高可用性的子系统。

 

standalone-load-balancer.xml

支持使用内置 mod_cluster 前端负载平衡器对其他 JBoss EAP 实例进行负载平衡所需的最小子系统。

  

默认情况下,将 JBoss EAP 作为单机服务器启动使用 standalone.xml 文件。若要使用独立 MicroProfile 配置启动 JBoss EAP,可使用 -c 参数。例如,

$ EAP_HOME/bin/standalone.sh -c=standalone-microprofile.xml

您可以使用 docs/examples/enable-microprofile.cli 脚本使用 MicroProfile 子系统和扩展来更新标准单机服务器配置文件。enable-microprofile.cli 脚本旨在作为示例脚本,用于更新标准单机服务器配置文件,而不是自定义配置。

enable-microprofile.cli 脚本修改现有的单机服务器配置,并在独立配置文件中不存在以下 MicroProfile 子系统和扩展:

  • microprofile-config-smallrye
  • microprofile-fault-tolerance-smallrye
  • microprofile-health-smallrye
  • microprofile-jwt-smallrye
  • microprofile-metrics-smallrye
  • microprofile-openapi-smallrye
  • microprofile-opentracing-smallrye

enable-microprofile.cli 脚本输出修改的高级描述。配置使用 elytron 子系统进行保护。security 子系统(如果存在)已从配置中删除。

先决条件

  • 已安装 JBoss EAP XP。

流程

  1. 运行以下 CLI 脚本以更新默认的 standalone.xml 服务器配置文件:

    $ EAP_HOME/bin/jboss-cli.sh --file=docs/examples/enable-microprofile.cli
  2. 使用以下命令,选择默认 standalone.xml 服务器配置文件以外的独立服务器配置:

    $ EAP_HOME/bin/jboss-cli.sh --file=docs/examples/enable-microprofile.cli -Dconfig=<standalone-full.xml|standalone-ha.xml|standalone-full-ha.xml>
  3. 指定的配置文件现在包含 MicroProfile 子系统和扩展。
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部