Book Image

GlassFish Administration

By : Xuekun Kou
Book Image

GlassFish Administration

By: Xuekun Kou

Overview of this book

To build a powerful production environment for your Java EE systems, you need a great application server, and the skills to manage it. This book gives you all that you are looking for. This book will help you gain the necessary skills to install, configure, tune, and troubleshoot GlassFish so that you can fully unleash its power. It will teach you how to use the GlassFish application server, with a special focus on administration tasks. It presents the GlassFish administrative tasks in a logical sequence, with each chapter focusing on a specific topic. Starting with installation and moving through configuration, this book takes a careful look at the administration console so that you get a complete understanding of GlassFish and its administrative features. It will help you understand how to deploy Java EE, Ruby on Rails and other supported applications to GlassFish, and how to configure the necessary resources for these applications. You will also learn how to maintain, tune, and troubleshoot your GlassFish server. Also includes a bonus chapter introducing Glassfish v3.
Table of Contents (17 chapters)
GlassFish Administration
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

Using the asadmin CLI utility


Located in the $AS_INSTALL/bin directory, the asadmin CLI utility has been improved to provide more capability in GlassFish 3. You can enter the following command to view the help page of the asadmin utility:

# cd $AS_INSTALL/bin
# ./asadmin help | more

There are two types of subcommands. Local subcommands can be run without a running domain administration server (DAS). However, you must have access to the installation directory and the domain directory. Remote subcommands are always run by connecting to a DAS. You can view a list of subcommands supported by asadmin with the following command:

# cd $AS_INSTALL/bin
# ./asadmin list-commands

The output of the list-commands lists both local and remote commands, as shown in the following sample output:

********** Local Commands **********
create-domain
delete-domain
list-commands
list-domains
login
monitor
start-database
start-domain
stop-database
stop-domain
version
********** Remote Commands **********
__locations...