Java standalone.xml 和 standalone-full.xml 的区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19524364/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Difference between standalone.xml and standalone-full.xml
提问by Muhammad Imran Tariq
What is the Difference between standalone.xml
and standalone-full.xml
. In what scenarios we use standalone-full.xml
standalone.xml
和之间有什么区别standalone-full.xml
。我们在什么场景下使用standalone-full.xml
采纳答案by HeavyE
- standalone.xml: Support of Java EE Web-Profile plus some extensions like RESTFul Web Services and support for EJB3 remote invocations
- standalone-full.xml: Support of Java EE Full-Profile and all server capabilities without clustering
- standalone-ha.xml: Default profile with clustering capabilities
- standalone-full-ha.xml: Full profile with clustering capabilities
- standalone.xml:支持 Java EE Web-Profile 以及一些扩展,如 RESTFul Web 服务和对 EJB3 远程调用的支持
- standalone-full.xml:支持 Java EE Full-Profile 和所有服务器功能,无需集群
- standalone-ha.xml:具有集群功能的默认配置文件
- standalone-full-ha.xml:具有集群功能的完整配置文件
Answer taken from: The Differences Between JBoss EAP 5 and EAP 6
回答by Dev Anand Sadasivam
If you configured standalone-full.xml
instead of standalone.xml
,- then you have to choose it while you start JBoss service.
如果您配置了standalone-full.xml
而不是standalone.xml
,- 那么您必须在启动 JBoss 服务时选择它。
./standalone.sh -c standalone-full.xml
./standalone.sh -c standalone-full.xml
If you do it in JBoss Developer Studio
then you should choose standalone-full.xml
instead of standalone.xml
in the Server Config.
如果你这样做,JBoss Developer Studio
那么你应该选择standalone-full.xml
而不是standalone.xml
在服务器配置中。
回答by albertoiNET
From RHELSM (https://access.redhat.com/solutions/1136103)
来自 RHELSM ( https://access.redhat.com/solutions/1136103)
standalone.xml: This is the default configuration file for a standalone server. It contains all information about the standalone server, including subsystems, networking, deployments, socket bindings, and other configurable details. This configuration is used automatically when you start your standalone server.
standalone-full.xml: This is an example configuration for a standalone server. It includes support for every possible subsystem except for those required for high availability.
standalone-ha.xml: This example configuration file enables all of the default subsystems and adds the mod_cluster and JGroups subsystems for a standalone server, so that it can participate in a high-availability or load-balancing cluster.
standalone-full-ha.xml: This is an example configuration for a standalone server. It includes support for every possible subsystem, including those required for high availability.
standalone.xml:这是独立服务器的默认配置文件。它包含有关独立服务器的所有信息,包括子系统、网络、部署、套接字绑定和其他可配置的详细信息。当您启动独立服务器时会自动使用此配置。
standalone-full.xml:这是一个独立服务器的示例配置。它包括对每个可能的子系统的支持,除了那些需要高可用性的子系统。
standalone-ha.xml:此示例配置文件启用所有默认子系统并为独立服务器添加 mod_cluster 和 JGroups 子系统,以便它可以参与高可用性或负载平衡集群。
standalone-full-ha.xml:这是一个独立服务器的示例配置。它包括对每个可能的子系统的支持,包括高可用性所需的子系统。
The server configuration for Messaging is contained in the $EAP_HOME/standalone/configuration/standalone-full.xmlor $EAP_HOME/standalone/configuration/standalone-full-ha.xmlfile for standalone servers. The element in the server configuration file contains all JMS configuration.
Messaging 的服务器配置包含在独立服务器的$EAP_HOME/standalone/configuration/standalone-full.xml或$EAP_HOME/standalone/configuration/standalone-full-ha.xml文件中。服务器配置文件中的元素包含所有 JMS 配置。
It says, full config also include sub config:
它说,完整配置还包括子配置:
- standalone-full.xmlhas standalone.xml
- standalone-full-ha.xmlhas standalone-ha.xml
- standalone-full.xml有standalone.xml
- standalone-full-ha.xml有standalone-ha.xml