Install and manage JBoss EAP 6 – JBoss Tutorial

JBoss Tutorial Introduction

In this jboss tutorial, we will demonstrate how to install JBoss Enterprise Application Platform 6 on your workstation. We will also perform some configurations to get us started managing our installation. More specifically, we want to be able to:

  • Install JBoss EAP to a specific location on a system
  • Install additional, operating system specific native libraries to enhance JBoss EAP performance
  • Configure minimal security requirements for accessing and managing JBoss EAP
  • Access and manage JBoss EAP using the prvodied tools
  • Configure and start a multi-node, multi-server JBoss EAP domain spanning at least two hosts with multiple servers per host

Assumption

The assumption for this guide is that you have a red hat linux installation.

This guide consists of the following steps

  1. Check system prerequisites
  2. Install JBoss EAP 6 using zip download
  3. Add initial user
  4. Start / Stop JBOSS EAP 6 as a Standalone Server
  5. Start / Stop JBOSS EAP 6 Managed Domain
  6. Access and Manage JBoss EAP 6 using the Management Console and Management CLI

STEP 1: Check System Prerequisites

Before proceeding with the installation, it would be very helpful if you have a Redhat account, you may register here. This will allow you to download resources required for your JBoss EAP 6 installation.

Next is to make sure that you have a JVM installed in your machine. You can try running the following command in your terminal:
$ java -version

JBoss Tutorial - Check Java Version

In case, you don’t have a JVM installed in you machine, please refer to this link.

STEP 2: Install JBoss EAP 6 using zip download

There are several ways to install JBoss Enterprise Application Platform 6. We’ll stick with the simplest form which is using the zip download. You may install JBoss EAP 6 on any location of your machine. In our case, we will install it on our home directory.

Download the JBoss Enterprise Application Platform 6 from redhat, under Downloads -> JBoss Enterprise Middleware -> Application Platform, at the very bottom. Unzip it to your home directory, this will be our EAP_HOME.

JBoss Tutorial - Home Directory JBoss EAP_HOME

STEP 3: Add Initial User

Before you could use the Management Console and/or Management CLI, we have to setup a management user first.

a. open up terminal and go to EAP_HOME/bin
b. run add user script

JBoss tutorial - Add User

c. Once you see the screen above simply hit enter until you are asked to enter the username

d. Enter desired username and password, answer YES on the next questions.

JBoss Tutorial - Add New User

e. Congratulations! You how now added a new user for your JBoss Instance.

STEP 4: Start / Stop JBOSS EAP 6 as a Standalone Server

a. open up terminal and go to EAP_HOME/bin
b. run script $./standalone.sh

JBoss Tutorial - Start in standalone mode
c. close terminal to stop server or simply hit ctrl + c

STEP 5: Start / Stop JBOSS EAP 6 Managed Domain

a. open up terminal and go to EAP_HOME/bin
b. run script $./domain.sh

JBoss Tutorial - Start JBoss in domain mode
c. close terminal to stop server or simply hit ctrl + c

STEP 6: Access and Manage JBoss EAP 6 using the Management Console and Management CLI

Management Console

a.open a web browser and type http://localhost:9990/

jboss-eap-6-management-console

Mangament CLI

a. open up terminal and go to EAP_HOME/bin
b. run script $./jboss-cli.sh –connect

JBoss Tutorial - Connect via JBoss CLI

Working environment

  •  RHEL 6 (x86_64)
  • JBoss EAP 6

Reference(s)

JBoss Exam Objective (EX248)