Hitachi

uCosminexus Application Server Command Reference Guide


cjsetup (set up or unsetup J2EE server)

Organization of this page

Format

For setup
cjsetup [server-name [-compat setup-version-identifier]]
For unsetup
cjsetup -d server-name

Function

This command sets up the environment of J2EE servers with specified names.

This command creates the default user definitions for J2EE servers set up in the following directory:

When the -d option is specified, the J2EE server environment (directories and files) shown below is deleted:

For the work directory and storage directory for Web applications, the directories and subordinate files are deleted if a value other than the default value is specified in the ejb.public.directory key of the usrconf.cfg user definition file.

Arguments

server-name

Specifies the server name of the J2EE server that is to be set up or unset up.

You can use single-byte alphanumeric characters (0-9, A-Z, or a-z), the underscore (_), and the hyphen (-) in the server name. The first character must be an alphanumeric character. You specify the server name within 255 characters and with the length that you estimate by referencing Appendix C.1 Work directory of the J2EE server in the uCosminexus Application Server System Setup and Operation Guide.

If the server name is omitted, the host name is assumed. However, the server name cannot be omitted for unsetup processing. In addition, if the host name contains a character that cannot be used in server names, an error occurs.

-compat setup-version-identifier

If this argument is specified, a J2EE server will be set up in the compatibility mode applicable to the specified version.

If the -compat argument is not specified, a J2EE server will be set up in the recommended mode.

Specify V9 as the setup version identifier so that a J2EE server will be set up in V9 compatibility mode.

If no value is specified as the setup version identifier, a command option format error occurs with the KDJE40027-I error message output.

If you specify a value other than V9 as the setup version identifier, an error occurs with the KDJE40075-E error message output.

-d

Specifies that the environment of the J2EE server is to be deleted. You cannot omit the server name.

Return values

0:

The command terminated normally.

1:

The command terminated abnormally.

Notes