Java Reference
In-Depth Information
Chapter 9. Managing the Application
Server
So far we have covered many Java Enterprise examples and deployed them on the
application server. We will now dive headlong into the vast and varied ocean of instru-
ments that are available for managing the application server. The ultimate purpose of
this chapter is to learn how to use these instruments to administer and monitor all the
resources available on the application server.
Here is the list of topics we will cover:
• An introduction to the JBoss Command Line Interface ( CLI )
• How to create scripts with the CLI
• How to programmatically manage your server resources using scripting
languages and the JBoss' client API
Entering the JBoss Command Line
Interface (CLI)
The CLI is a complete management tool, which can be used to start and stop servers,
deploy and undeploy applications, configure system resources, and perform other ad-
ministrative tasks. Operations can be performed in an atomic way or in batch modes,
allowing multiple tasks to be run as a group.
Launching the CLI
You can start the CLI by entering the following command from the JBOSS_HOME/bin
folder if you are using Windows:
jboss-cli.bat
Or enter the following command if you are using Linux:
Search WWH ::




Custom Search