28
3.5.1. Configuring the Registry Service
The
service is used for accessing the RMI registry, CMI registry, or CosNaming (iiop),
registry
depending on the configuration of communication protocols specified in
to Section 3.3 Configuring the Communication Protocol and JNDI.)
There are several Registry-launching modes based on the value of the JOnAS property
jonas.service.registry.mode
automatic
The Registry is launched in the same JVM as JOnAS Server, if not already started. This is the
default value.
collocated
The Registry is launched in the same JVM as the JOnAS Server.
remote
The Registry must be launched before the JOnAS Server in a separate JVM. (Refer to Section
6.4 registry.)
The port number on which the Registry is launched is defined in the
3.5.2. Configuring the EJB Container Service
The EJB Container service is the primary JOnAS service. It provides EJB containers for EJB compo-
nents.
You can create an EJB container from an EJB-JAR file in the following ways:
The corresponding EJB-JAR file name is listed in the
•
erty in the
jonas.properties
be located in the
$JONAS_BASE/ejbjars/
server starts.
Example:
jonas.service.ejb.descriptors
In this example the Container service creates a container from the EJB-JAR file named
JOnAS will search for this file in the
To automatically create an EJB container at server start-up time, place the EJB-JAR
•
files in an
autoload
jonas.service.ejb.autoloaddir
JOnAS also allows for loading unpacked EJB components. The name of the xml file containing the
EJB's deployment descriptor must be listed in the
Note that the JOnAS server must have access to the component's classes, which may be achieved using
the
XTRA_CLASSPATH
3.5.3. Configuring the WEB Container Service
The WEB Container service provides WEB containers for the WEB components used in the J2EE
applications. JOnAS provides an implementation of the WEB Container service for Tomcat 5.0.x.
A WEB container is created from a WAR file. If the file name does not contain an absolute path name,
it must be located in the
. The possible values of this property are:
file. If the file name does not contain an absolute path, it should
$JONAS_BASE/ejbjars/
directory. The name of this directory is specified using the
property in the
environment variable (refer to Chapter 5 JOnAS Class Loader Hierarchy).
$JONAS_BASE/webapps/
jonas.service.ejb.descriptors
directory. The container is created when the JOnAS
Bank.jar
jonas.properties
jonas.service.ejb.descriptors
directory.
Chapter 3. JOnAS Configuration
carol.properties
carol.properties
directory.
file.
. (refer
file.
prop-
.
Bank.jar
property.
Need help?
Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?
Questions and answers