Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

JBoss EAP 7 Domain deployments - Part 3: Domain deployment with Common Language Interface CLI.

August 11, 2016
Elvadas Nono
Related topics:
CI/CDDeveloper toolsJava
Related products:
Red Hat Fuse

    In this series of articles, I will present several ways to deploy an application on an EAP Domain. The series consists of four parts. Each one will be a standalone article, but the series as a whole will present a range of useful topics for working with JBoss EAP.

    • Part 1: Set up a simple EAP 7.0 Domain (this article).
    • Part 2: Domain deployments through the new EAP 7.0 Management Console
    • Part 3:  Introduction to DMR (Dynamic Model Representation) and domain deployments from the Common Language Interface CLI
    • Part 4: Domain deployment from the REST Management API

    In part one, we set up a simple EAP domain with the following topology:

    JBoss EAP Simple Domain
    JBoss EAP Simple Domain
    JBoss EAP Simple Domain

    In part two, we reviewed the EAP management console deployment mechanism, and deployed the helloworld-html5 EAP Quickstart on the main-server-group ( Server11 and Server21).

    When it comes to interactions with a continuous deployment software factory, however, we need more powerful and flexible tools to organize the build and deployment process --- the management console is not a good fit for build automation.

    To solve this problem, JBoss EAP provides users with both a CLI tool and a simple REST API to perform complex administration tasks.

    In this article, we will use the EAP CLI to deploy the helloworld-html5 Application on the secondary-server-group.

    CLI Deployment

    Remember, from parts one and two, that the management CLI is available through the native management interface configured in host-master.xml on 127.0.0.0:9999.

    Prior to EAP 7.0, you needed your EAP instance / controller to be up and running before connecting and interacting with the CLI, but EAP 7.0 brings a new feature called the offline management CLI. This means you don't need the server to be started in order to use the CLI (learn more about the Offline CLI). The deploy command, however, still requires a connection to the controller.

    Make sure your domain and hosts controllers are started, then run the following commands:

    cd $EAP_DOMAIN/labs/jboss-eap-7.0/bin
    /jboss-cli.sh --connect --controller=127.0.0.1:9999
    [domain@127.0.0.1:9999 /]

    You are now connected to the CLI and can check the existing deployments in the domain repository:

    [domain@127.0.0.1:9999 /] deploy -l
    NAME                       RUNTIME-NAME
    jboss-helloworld-html5.war jboss-helloworld-html5.war
    [domain@127.0.0.1:9999 /]

    jboss-helloworld-html5.war is deployed on the primary-server-group, and you can verify this by checking the deployment info of the group:

    [domain@127.0.0.1:9999 /] deployment-info --server-group=primary-server-group
    NAME RUNTIME-NAME STATE
    jboss-helloworld-html5.war jboss-helloworld-html5.war enabled
    [domain@127.0.0.1:9999 /]
    ...
    [domain@127.0.0.1:9999 /] deployment-info --server-group=secondary-server-group
    NAME RUNTIME-NAME STATE
    jboss-helloworld-html5.war jboss-helloworld-html5.war not added
    [domain@127.0.0.1:9999 /]

    Now we can add the jboss-helloworld-html5.war deployment on our secondary server group, with the following command:

    [domain@127.0.0.1:9999 /] deploy --name=jboss-helloworld-html5.war --server-groups=secondary-server-group
    [domain@127.0.0.1:9999 /]

    With the --name option, the deployment is located in the EAP  content repository, if you want to specify another file location you can just use the --file_path option and remove --name.

    Congratulations! The deployment is now active on server 12 (HTTP 8280) and server 22 (HTTP 8480). In the next section (part four) we will see how to perform deployments using the REST Management API.

     

     

     

    Last updated: March 16, 2023

    Recent Posts

    • Protect data offloaded to GPU-accelerated environments with OpenShift sandboxed containers

    • Case study: Measuring energy efficiency on the x64 platform

    • How to prevent AI inference stack silent failures

    • Preventing GPU waste: A guide to JIT checkpointing with Kubeflow Trainer on OpenShift AI

    • How to manage TLS certificates used by OpenShift GitOps operator

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.