standalone.xml 和standalone-full.xml 之间的区别

问题描述 投票:0回答:4

standalone.xml
standalone-full.xml
有什么区别。我们在什么场景下使用
standalone-full.xml

java jboss
4个回答
60
投票
  • standalone.xml:支持 Java EE Web-Profile 以及一些扩展,例如 RESTFul Web 服务以及对 EJB3 远程调用的支持
  • standalone-full.xml:支持 Java EE Full-Profile 和所有服务器功能,无需集群
  • standalone-ha.xml:具有集群功能的默认配置文件
  • standalone-full-ha.xml:具有集群功能的完整配置文件

答案取自:JBoss EAP 5 和 EAP 6 之间的区别


13
投票

来自 RHELSM (https://access.redhat.com/solutions/1136103)

  1. standalone.xml:这是独立服务器的默认配置文件。它包含有关独立服务器的所有信息,包括子系统、网络、部署、套接字绑定和其他可配置详细信息。当您启动独立服务器时,会自动使用此配置。

  2. standalone-full.xml:这是独立服务器的示例配置。它包括对除高可用性所需的子系统之外的所有可能子系统的支持。

  3. standalone-ha.xml:此示例配置文件启用所有默认子系统,并为独立服务器添加 mod_cluster 和 JGroups 子系统,以便它可以参与高可用性或负载平衡集群。

  4. standalone-full-ha.xml:这是独立服务器的示例配置。它包括对每个可能的子系统的支持,包括高可用性所需的子系统。

消息传递的服务器配置包含在独立服务器的 $EAP_HOME/standalone/configuration/standalone-full.xml$EAP_HOME/standalone/configuration/standalone-full-ha.xml 文件中。服务器配置文件中的元素包含所有 JMS 配置。

它说,完整配置还包括子配置:

  • standalone-full.xmlstandalone.xml
  • standalone-full-ha.xmlstandalone-ha.xml

10
投票

如果您配置了

standalone-full.xml
而不是
standalone.xml
,- 那么您必须在启动 JBoss 服务时选择它。

./standalone.sh -c standalone-full.xml

如果您在 JBoss Developer Studio 中执行此操作,那么您应该在服务器配置中选择

standalone-full.xml
而不是
standalone.xml


0
投票

当前的入门指南有一个很好的表格,比较了

full
default
配置。

© www.soinside.com 2019 - 2024. All rights reserved.