官术网_书友最值得收藏!

Lab - using the JBoss CLI

A JBoss EAP configuration is persisted in XML configuration files. JBoss provides various tools to interact with this configuration:

  • You can manually edit the XML file (not the recommended option)
  • Alternatively, you can use the web console to update JBoss configuration
  • JBoss Command Line Interface tool or CLI for short
  • DMR API: Dynamic Model Representation API is a REST API to access JBoss CLI commands

DMR is the JBoss configuration internal representation; it is a flat XML syntax where all the settings appear at the same level.
The CLI allows you to manage and configure EAP instances or domains remotely from a command line, including writing scripts for repetitive tasks.
You can connect to the domain administration console using the CLI:

bin$ ./jboss-cli.sh --connect --controller=127.0.0.1:9999
[domain@127.0.0.1:9999 /]

The --controller option specifies the IP and port to access the domain controller. Use the read-resource command to inspect configuration objects. Here, we display details of the main-server-group server group with the read-resource command:

[domain@127.0.0.1:9999 /] /server-group=main-server-group:read-resource
{
"outcome" => "success",
"result" => {
"management-subsystem-endpoint" => false,
"profile" => "full",
"socket-binding-default-interface" => undefined,
"socket-binding-group" => "full-sockets",
"socket-binding-port-offset" => 0,
"deployment" => undefined,
"deployment-overlay" => undefined,
"jvm" => {"default" => undefined},
"system-property" => undefined
}
}
[domain@127.0.0.1:9999 /]
主站蜘蛛池模板: 肇庆市| 岐山县| 长阳| 蒲江县| 交口县| 河源市| 海门市| 浦北县| 旺苍县| 花垣县| 万年县| 栾城县| 洞口县| 赤城县| 长寿区| 深州市| 团风县| 丹凤县| 获嘉县| 宜州市| 会东县| 铜陵市| 怀集县| 莱西市| 大姚县| 吴桥县| 博湖县| 南涧| 岱山县| 建宁县| 呼玛县| 长丰县| 富裕县| 额尔古纳市| 黄浦区| 涿州市| 寻乌县| 淮南市| 大城县| 中江县| 北安市|