WildFly (JBoss AS) – How to Access and Manage CLI Using GUI

In last article, we have discussed about WildFly-8 (New enhanced version on Jboss AS). We have gone through the new functionalities and features added/upgraded to this version. Today, in this post we are going to discuss about the CLI management using GUI and how to manage the Server using GUI version on CLI management.

  1. WildFly – A New Improved JBoss Application Server for Linux
WildFly CLI Management

WildFly CLI Management

Since Jboss AS 7, we have got a command line (CLI) tool for connecting to JBoss application and managing all tasks from command line environment. Some of the tasks that we can do using CLI console are as below.

  1. Deploy/Undeploy web application in standalone/Domain Mode.
  2. View all information about the deployed application on runtime.
  3. Start/Stop/Restart Nodes in respective mode i.e. Standalone/Domain.
  4. Adding/Deleting resource or subsystems to servers.

In this post, we are going to discuss about the different tasks and the way for launching CLI in GUI. Currently we can connect to GUI using two ways as shown below:

Method 1

By passing –gui option to “jboss-cli” script provided with Jboss/WildFly.

[[email protected] bin]# ./jboss-cli.sh --gui
WildFly Cli Access

WildFly Cli Access

Method 2

Directly launching required jar from CLI (this is same which is in built in script itself).

[[email protected] bin]# java -Dlogging.configuration=file:$JBOSS_HOME/bin/jboss-cli-logging.properties -jar $JBOSS_HOME/jboss-modules.jar -mp $JBOSS_HOME/modules org.jboss.as.cli –gui
WildFly Cli Gui

WildFly Cli Gui

You can take help from tool tip available on each node.

WildFly Tooltip

WildFly Tooltip

For Getting Information about the resources of any module, just right click on that node and click on “read-resource”. After entering required values, all will get entered in command bar. Finally, click on submit button and you will see all details in Output tab.

WildFly Modules

Modules Information

WildFly Output

Output Script

Deploy/Undeploy

WildFLy’s GUI environment also supports for the deployments and undeployments of the web applications via the “Deployments” menu.

Using this we can construct our commands which can deploy applications present on our local file System, i.e. we don’t need to connect and copy application to Server for Deployments.

Step 1: Click on “Deployments” menu and then deploy. It will open a new dialog box asking for the location of the Web Application need to be deployed.

WildFly Application Deployment

Application Deployment

Step 2: Select your web application. Provide “Name” and “Runtime Name”. Along with this you have to disable or deploy it forcefully by using mentioned check boxes.

Deploy Name

Deploy Name

Step 3: Finally, click on Ok. After this you can see that it will create command within cmd box. Finally click on “Submit” button for submitting the deployment request.

Deployment Command

Deployment Command

Step 4: After submitting, if everything goes fine. You will see output message in “Output” tab.

Output Command

Output Command

Step 5: For Un-deployment of any application, again you have to click on “Undeploy” option available in “Deployment” menu. This will provide you new pop up containing list of all deployed applications. In my case I have only one application available. Select application need to undeploy and then click OK.

Undeployment Application

Undeployment Application

Creating and Executing CLI scripts

Whenever you click on option available on CLI’s GUI, then it creates corresponding command in its “cmd” prompt. Suppose, you have some task that you want to perform again and again. In that case you can avail use of “Script” execution facility available in this GUI version.

For example, Getting list of deployment resources, I have created a cli script and executed that from GUI as below.

Creating Cli Script

Creating Cli Script

Open Cli Script

Open Cli Script

Run Cli Script

Run Cli Script

It’ll show you the description of all available deployment resources.

All Deployments

All Deployments

One more helpful feature available in GUI is that It automatically keep the history of last 15 CLI scripts. So, you don’t need to load same script again and again. This can be really helpful for some kind of repeating task.

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Kuldeep Sharma

Currently, Working in Middleware(Jboss/Apache Tomcat) And POSIX related technologies. Having more than 5 years of experience and love to do R&D on different open source tools/technologies.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.