- 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?
推薦閱讀
- C語(yǔ)言程序設(shè)計(jì)實(shí)踐教程(第2版)
- Mastering JavaScript Object-Oriented Programming
- 構(gòu)建移動(dòng)網(wǎng)站與APP:HTML 5移動(dòng)開(kāi)發(fā)入門與實(shí)戰(zhàn)(跨平臺(tái)移動(dòng)開(kāi)發(fā)叢書(shū))
- Apex Design Patterns
- Spring核心技術(shù)和案例實(shí)戰(zhàn)
- 從零開(kāi)始學(xué)C語(yǔ)言
- PHP從入門到精通(第4版)(軟件開(kāi)發(fā)視頻大講堂)
- Java實(shí)戰(zhàn)(第2版)
- 智能搜索和推薦系統(tǒng):原理、算法與應(yīng)用
- Learning Node.js for .NET Developers
- Java Web從入門到精通(第3版)
- SQL Server 2016 從入門到實(shí)戰(zhàn)(視頻教學(xué)版)
- Mastering Adobe Captivate 7
- CodeIgniter Web Application Blueprints
- Machine Learning for OpenCV