- JBoss:Developer's Guide
- Elvadas Nono Woguia
- 172字
- 2021-07-02 18:37:28
JBoss CLI deployment
To deploy an application using the JBoss CLI, first connect to the native domain controller interface, then use the deploy method to add a deployment to a server group:
bin$ ./jboss-cli.sh --connect --controller=127.0.0.1:9999
[domain@127.0.0.1:9999 /] deploy $WORKSPACE/jbossas/beosbank-web/beosbank-web.war --server-group dev03
#you can also force deployment and check the result status with
[domain@127.0.0.1:9999 /] /server-group=dev03/deployment=beosbank-web.war:read-resource
{ "outcome" => "success",
"result" => {
"enabled" => true,
"name" => "beosbank-web.war",
"runtime-name" => "beosbank-web.war"
} }
[domain@127.0.0.1:9999 /] /server-group=dev03/deployment=beosbank-web.war:deploy
{
"outcome" => "success",
"result" => undefined,
"server-groups" => {"dev03" => {"host" => {
"host1" => {"node13" => {"response" => {
"outcome" => "success",
"result" => undefined
}}},
"host2" => {"node23" => {"response" => {
"outcome" => "success",
"result" => undefined
}}}
}}}
}
Deployment can be performed on a specific server group using the --server-group option. Once deploy you can verify the deployment status with the read-resource function. JBoss CLI deployment assumes you have a JBoss binary script, What about deployment in continuous delivery pipelines using Java EE standard tools such as Maven?
推薦閱讀
- 軟件安全技術
- Learning NServiceBus(Second Edition)
- Java 開發從入門到精通(第2版)
- Cassandra Design Patterns(Second Edition)
- EPLAN實戰設計
- Python機器學習經典實例
- 精通網絡視頻核心開發技術
- Android底層接口與驅動開發技術詳解
- Building Dynamics CRM 2015 Dashboards with Power BI
- SQL Server 入門很輕松(微課超值版)
- Implementing Microsoft Dynamics NAV(Third Edition)
- Python程序設計教程
- INSTANT Apache Maven Starter
- 計算機視覺實戰:基于TensorFlow 2
- 狼書(卷2):Node.js Web應用開發