- JBoss:Developer's Guide
- Elvadas Nono Woguia
- 213字
- 2021-07-02 18:37:27
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 /]
推薦閱讀
- 大學(xué)計算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程
- Linux C/C++服務(wù)器開發(fā)實(shí)踐
- C#程序設(shè)計(慕課版)
- RTC程序設(shè)計:實(shí)時音視頻權(quán)威指南
- 名師講壇:Java微服務(wù)架構(gòu)實(shí)戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- H5頁面設(shè)計:Mugeda版(微課版)
- PySpark Cookbook
- Yii Project Blueprints
- 圖數(shù)據(jù)庫實(shí)戰(zhàn)
- Access 2010中文版項目教程
- Spring技術(shù)內(nèi)幕:深入解析Spring架構(gòu)與設(shè)計原理(第2版)
- JavaScript從入門到精通(視頻實(shí)戰(zhàn)版)
- Java程序設(shè)計教程