Deploying an Application with the JBoss EAP Management CLI

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

JBoss Enterprise Application Platform provides an extensive Java EE-based application server to which we can deploy and manage our applications. Often, this can be as simple as deploying a provided WAR or EAR file to our configured server. In this lab, we’ll specifically explore how to deploy a simple WAR file with the JBoss Management CLI.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Connect to the CLI
  1. In the cloud_user‘s home directory, confirm the presence of the kitchensink.war file:

    ls
    1. Move into the JBoss home directory:
    cd /opt/jboss-eap
    1. Open the JBoss Management CLI:
    sudo ./bin/jboss-cli.sh
    1. Connect to the server:
    connect
Deploy the Application
  1. Deploy the application:

    deployment deploy-file /home/cloud_user/kitchensink.war
  1. Check that the application has deployed using the deployment info command:

    deployment info
  2. Finally, access PUBLICIP:8080/kitchensink to access the application itself.

Disable/Undeploy the Application
  1. Now that you know the application is working, you can either disable it or undeploy it entirely:
    deployment disable kitchensink.war
    deployment undeploy kitchensink.war
  2. Exit the CLI:
exit

Additional Resources

You have been provided with the latest release of an application you manage. Before pushing it to the primary JBoss EAP servers, you wish to first test the application on a standalone test environment. Using the CLI, deploy the kitchensink.war application found in the cloud_user's home directory, then navigate to PUBLICIP:8080/kitchensink to ensure it's working. Once finished, either disable or remove the deploy entirely.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!