J2EE Web Server

To launch the J2EE server, run the j2ee script from the command-line prompt in a console window.

You must set the environment variables JAVA_HOME and J2EE_HOME to point to the jdk and j2sdkee directories.

The following sequence could be placed in a batch file:

set JAVA_HOME=C:\jdk1.3
set J2EE_HOME=C:\j2sdkee1.2.1
call %J2EE_HOME%\bin\j2ee -verbose %1

Using the -verbose flag adds some additional interesting output on the console window.

The console window is not available for additional commands once the server has started. In particuliar, you must use another console window to issue a stop command.

To stop the server, use the command:

j2ee -stop

The following table describes the j2ee script's options:

TABLE 1 Options of the j2ee Script

Option

Description

-verbose Redirects all logging output to the current shell.
-version Displays the version number.
-stop Stops the J2EE server.
-singleVM Runs services and deployed enterprise beans in a single process.
This mode is the default. You'll probably want to use this mode
when debugging your applications because debugging multiple
processes can be difficult.
-multiVM Launches an additional VM (virtual machine) for each
application that you deploy. Also launches separate VMs for the
EJB and HTTP services. This option may improve performance
but it will increase memory usage.

To run the HTTPS service of the J2EE server, you must install a server certificate.


Maintained by John Loomis, last updated 2 Feb 2001