Administration Guide

 

JOnAS provides two tools to perform some administration tasks on a running JOnAS Server.
Those tools allow to administrate severals JOnAS Server.
Each JOnAS Server is identified by a name which is the value of the JOnAS property jonas.name (default name is jonas).

The administration tools are:

The target audience of this guide is the JOnAS server administrator.

 

JonasAdmin

JonasAdmin is described in the JOnAS Commands chapter.

 

Jadmin

Server-side component model and middleware services are about to become a major stake today. That is why an application server such as JOnAS has to provide management and monitoring features.

This chapter provides information for installing, configuring and using the Java Management Extensions features of JOnAS called Jadmin for JOnAS administrator.

Jadmin is an administration tool developped with the Java servlets technology, so it is accessible with a web browser.

As since JOnAS2.4.4 there is a new JOnAS service tomcat that allows to launch the servlet container tomcat in the same JVM as JOnAS, you only have to launch JOnAS to have access to Jadmin.

How to install Jadmin ?

The Sun JMX Reference Implementation is included in the JOnAS jar file, so you have nothing to do about that.

Since the tool consists of servlets, you have to install a servlet server. In the following, it will be considered that you use Tomcat33a. Tomcat installation and configuration are documented in the Tomcat user's guide. You may fin a quick installation guide for Tomcat with JOnAS in the Use Tomcat with JOnAS howto document.

The steps for installing Jadmin are described below:

  1. First of all, you have to copy the $JONAS_ROOT/webapps/jadmin.war file in the $TOMCAT_HOME/webapps directory, or modify the $TOMCAT_HOME/conf/server.xml file in order to make Tomcat load the jadmin.war file on startup.

  2. When accessing a Jadmin servlet, the user must identify and authenticate himself. Therefore, she/he must specify the jadmin role in the tomcat-users.xml file in the $TOMCAT_HOME/conf/users directory:
    <tomcat-users>
      <user name="jadmin" password="jonas" roles="jadmin,tomcat" />
      ...
    </tomcat-users>
    Of course, you can set another password.

How to use Jadmin ?

Be sure you have set tomcat in the jonas.services property in the jonas.properties file. Your TOMCAT_HOME environment variable must be set to the root directory of a tomcat3.3a.

Once you have launched JOnAS, Jadmin is accessible at this URL: http://<hostname>:<portnumber>/jadmin/ on your favorite web browser.

<hostname> is the name of the host where Tomcat is running and <portnumber> is the Tomcat http port number (default is 8080).

The first page you see after clicking on the entering page is the following:


Choosing the registry

The registry URL corresponding to your JOnAS configuration is displayed in the "Registry URL" text area. Note that if you have several EJB servers running and using different registries, you have the possibility to set the registry URL in order to manage the corresponding EJB servers.

The following of this section explains the general principles of the graphical user interface of Jadmin.

The interface is divided in thumb indexes: one index for each service (container, database, transaction, trace, JMS, security and management), one index for the EJB server itself and a last one for the MBeans.


The picture above shows the thumb indexes and the top banner.

 

Since most of the management operations are not idempotent, the user should not use the browser reload button, but the Refresh link in the top banner.

Some thumb indexes are organized as tree structures. For example:


This picture shows an example of the tree structures for the container index.

 


This example shows the browsing tree (the user is currently looking at the 'SbfBean' EJB in the EJB container 'Session Perfs').

 

The JOnAS administration interface consists of JMX attributes and operations. Attributes could be readable and/or writable. When an attribute is writable, it is displayed in a text input area and there are two buttons beside it (the reset button reset the text input with its initial value, the submit button sends the new value to the server).


In this example, the Current transaction time out attribute is readable and writable. The three others attributes are only readable.

 

Sometimes, writables attributes are presented with a check box or a radio box, it depends on the attribute type (if it is a boolean for example).

Operations are presented as boldface characters links. When an operation needs a parameter, it is presented with an input text area and a button.


This picture shows the Stop operation, which is applicable on the EJB container scale, the Synchronize all Entity Beans operation and the Start operation with a string parameter.

 

The All MBeans index thumb displays the exhaustive list of all MBeans.

 

One management operation is especially important, it is the possiblility to load a container from the Jadmin console. This is available in the Container index, via the "ejb-jar deployment descriptor or jar file" text input area:


The Container loading facility

In the text area, you should put