Hitachi

uCosminexus Application Server Definition Reference Guide


12.2.1 usrconf.cfg (Option definition file for Java applications)

Organization of this subsection

(1) Format

Specify the key as follows:

key-name=value
Specification method
  • The string up to the linefeed is a value.

  • The line beginning with a hash mark (#) is a comment.

  • If you define a line without a value, the line is ignored.

  • You cannot add alphanumeric strings such as spaces and comments after the value. If you add such values, they will be considered as invalid.

(Example) key-name=value#comment

  • If you specify a path containing a space in the value, you need not enclose the path in double quotation marks (").

  • You cannot code with a character encoding that is different from the runtime character encoding.

(2) File storage location

#

This is the directory specified in the user definition file storage location environment variable (CJCLUSRCONFDIR). If this environment variable is not set, the system references the current directory. For details on the environment variable settings required to execute EJB client applications, see 3.3.4 Environment variable settings required to execute EJB client applications in the manual uCosminexus Application Server EJB Container Functionality Guide.

(3) Functionality

This file specifies the invocation options of the JavaVM that executes the Java application when you use the cjclstartap command.

If you change the contents of this file while the Java application is running, the changes are applied only when the Java application is started next.

(4) Specifiable keys

The specifiable keys and default values are described below. When an invalid value is specified for this key, operation is not guaranteed.

Tip

The following contents are explained:

  • Overview of the keys that you can specify in the usrconf.cfg file for Java applications

    Of the keys that can be specified, those that are common with usrconf.cfg for J2EE servers are not explained in detail here.

    For details on the common keys, see 2.2.2 usrconf.cfg (Option definition file for J2EE servers). When referencing, substitute J2EE server for Java application.

    This subsection also explains the details of keys, if the specification contents and the keys for J2EE server differ greatly.

  • Differences with the keys for J2EE server (when the keys and specification contents of the usrconf.cfg file for J2EE server are different)

    This subsection explains the details about the keys when specifications for the Java application keys and the J2EE server keys are different. Note the differences in the Difference column.

Table 12‒2: Keys and default values that you can specify in usrconf.cfg (Java application)

Key name

Difference

Contents

Default value

add.jvm.arg

None

This key invokes JavaVM by using the specified option.

For details about the Java VM options that can be specified by using add.jvm.arg keys, see 14.1 List of JavaVM extension options and 14.5 Java HotSpot VM options that can be specified in Cosminexus.

For details about default values, see 12.2.1(6) Default values of the JavaVM options specified in the option definition file for Java applications.

add.class.path

Exists

Specify a class path necessary for executing Java applications.

Specify the class path (stubs.jar, numeric.jar, user class.jar) necessary for the execution of each EJB application.

If a path containing space is specified in the value, the path need not be enclosed with double quotation mark ("). Also, values specified in double quotations are not valid.

--

add.library.path#

None

Specify the shared library for JNI

--

cpp.library.version

None

Specify the version of libstdc++ library used in the process. Note that this key is used in Linux.

The following string can be specified:

6:

The libstdc++.so.6 library will be used. This key is invalid when specified on platforms other than Red Hat Enterprise Linux.

Only 6 can be specified with version 09-00 or later.

6

ejb.client.directory.shareable

Unique

Specify whether to simultaneously start multiple cjclstartap commands that use the same current directory or the same log output destination directory.

If you specify true:

Multiple commands are started at the same time.

If you specify false:

Multiple commands are not started at the same time.

true

ejb.client.ejb.log

Unique

Specify a value from 1 to 16 bytes for the name of the log output destination directory of the messages output by the Java application under the directory specified in the ejb.client.log.directory key.

You can specify single-byte alphanumeric characters, underscores (_), and hyphens (-).

If you specify a string that exceeds 16 bytes, the KDJE40051-W message is output.

If there are no access permissions for the directory and if you specify the file name, the KDJE40052-E message is output and the Java application terminates.

If you specify ejbserver.client.ejb.log in the user property file (usrconf.properties), the specification of the user property file is given priority at the following log file output destinations:

  • Operation log

  • Exception information in the case of failure

  • Maintenance information

system

ejb.client.log.appid

Unique

Specify a value from 1 to 16 bytes for the name of the log output destination subdirectory of the messages output by the Java application.

You can specify single-byte alphanumeric characters, underscores (_), and hyphens (-).

If you specify a string that exceeds 16 bytes, the KDJE40051-W message is output.

If there are no access permissions for the directory and if you specify the file name, the KDJE40052-E message is output and the Java application terminates.

If you specify ejbserver.client.log.appid in the user property file (usrconf.properties), the specification of the user property file is given priority at the following log file output destinations:

  • Operation log

  • Exception information in the case of failure

  • Maintenance information

ejbcl

ejb.client.log.directory

Unique

Specify the log output destination path for the Java application in the range of 1 to 180 bytes.

Specify the path as an absolute path or as a relative path from the current directory.

You can specify single-byte alphanumeric characters, underscores (_), hyphens (-), and path separation characters.

If you specify a path exceeding 180 bytes (when the relative path is specified, the total of absolute path and relative path up to the current directory), the KDJE40059-W message is output and the default value is used. When the default value exceeds 180 bytes, log initialization fails and terminates abnormally.

In Windows, you cannot specify a path that includes a UNC name. In UNIX, you cannot specify a path of an nfs-mounted disk.

If there are no access permissions for the directory and if you specify the file name, the KDJE40052-E message is output and the Java application terminates.

If you specify ejbserver.client.log.directory in the user property file (usrconf.properties), the specification of the user property file is given priority at the following log file output destinations:

  • Operation log

  • Log operation log

  • Exception information in the case of failure

  • Maintenance information

Current-directory/logs

ejb.client.log.lockInterval

Unique

Specify a parameter that acts on the exclusive processing for the following log files:

  • Operation log for the cjclstartap command

  • Start process information sent to the standard output

  • Start process information sent to the standard error output

The function of the parameter that acts on exclusive processing differs depending on whether the OS is UNIX or Windows.

In UNIX only:

This key specifies the interval (in milliseconds) at which to try again if acquisition of exclusive processing for a log file fails. You can specify an integer in the range from 1 to 2147483647.

In Windows only:

You can specify an integer in the range from 1 to 2147483647. The value resulting from multiplying the values specified for ejb.client.log.lockRetryCount and ejb.client.log.lockInterval becomes the time (in milliseconds) to wait for before acquisition of exclusive processing times out. If the resulting value exceeds 2147483647, the value obtained by multiplying the default values of ejb.client.log.lockRetryCount and ejb.client.log.lockInterval becomes the timeout for acquisition of exclusive processing.

In both UNIX and Windows:

If you specify a value that is outside the range of specifiable values or a non-integer value (value that cannot be converted into an integer), the default value is applied.

For example, this key is used in the following case: Multiple instances of the cjclstartap command that started concurrently in the subdirectory common mode failed in exclusive processing for a log file, outputting the KDJE40016-E (with errno 22), KDJE30043-E, or KDJE40052-E message to the standard error output.

30

ejb.client.log.lockRetryCount

Unique

Specify a parameter that acts on the exclusive processing for the following log files:

  • Operation log for the cjclstartap command

  • Start process information sent to the standard output

  • Start process information sent to the standard error output

The function of the parameter that acts on exclusive processing differs depending on whether the OS is UNIX or Windows.

In UNIX only:

This key specifies the maximum number of times the system can try again if acquisition of exclusive processing for a log file fails. You can specify an integer in the range from 1 to 2147483647.

In Windows only:

You can specify an integer in the range from 1 to 2147483647. The value resulting from multiplying the values specified for ejb.client.log.lockRetryCount and ejb.client.log.lockInterval becomes the time (in milliseconds) to wait for before acquisition of exclusive processing times out. If the resulting value exceeds 2147483647, the value obtained by multiplying the default values of ejb.client.log.lockRetryCount and ejb.client.log.lockInterval becomes the timeout for acquisition of exclusive processing.

In both UNIX and Windows:

If you specify a value that is outside the range of specifiable values or a non-integer value (value that cannot be converted into an integer), the default value is applied.

For example, this key is used in the following case: Multiple instances of the cjclstartap command that started concurrently in the subdirectory common mode failed in exclusive processing for a log file, outputting the KDJE40016-E (with errno 22), KDJE30043-E, or KDJE40052-E message to the standard error output.

100

ejb.client.log.stdout.enabled

Unique

Specify whether to output messages in the standard output.

true:

Messages are output in the standard output.

false:

Messages are not output in the standard output.

Following are the logs in which messages output in the standard output can be controlled:

  • Operation log

  • cjclstartap command log

  • Standard output information of the invocation process

true

jvm.type

Unique

Specify type of the JavaVM to be used. You can specify one of the following values:

  • client

    Java HotSpot Client VM is used.

  • server

    Java HotSpot Server VM is used.

If the specified value is wrong, JavaVM is searched in the "client" and "server" order. At this time, a message KDJE40020-W is output.

client

Legend:

Exists:

There is a difference in the keys of the usrconf.properties file for Java applications and the keys of the usrconf.properties file for J2EE servers. For details about keys, see the Contents column.

None:

This is a common key or default value in the usrconf.cfg file for Java applications and the usrconf.cfg file for J2EE servers. For details about keys, see 2.2.2 usrconf.cfg (Option definition file for J2EE servers).

Unique:

This is a key specific to usrconf.cfg file for Java applications. For details about keys, see the Contents column.

--:

This is a common default value in the usrconf.cfg file for Java applications and the usrconf.cfg file for J2EE servers. For details about the default value, see 2.2.2 usrconf.cfg (Option definition file for J2EE servers).

#

If both the add.library.path and OS environment variables (such as LIBPATH) are set up when executing the cjclstartap command, the add.library.path settings have a higher priority.

(5) Examples of coding

# EJB client application classpath
# RMI-IIOP Stubs jar file
add.class.path=Java-application-storage-path\stubs.jar
 
# RMI-IIOP interface jar file
add.class.path=Java-application-storage-path\1.jar
 
# User class
add.class.path=Java-application-storage-path\Java-application-jar
#add.class.path=user-classpath
 
# java vm options
add.jvm.arg=-Xms256m
add.jvm.arg=-Xmx512m

(6) Default values of the JavaVM options specified in the option definition file for Java applications

The following are the default values of the Java VM options specified in the option definition file for Java applications:

(7) Notes