8.11.2 Preparing for use
The following preparations are needed when you use the user log functionality in an EJB client application.
Note that you must perform the settings on the Application Server machine as a prerequisite of using the user log functionality in EJB client applications.
-
Preparing a configuration file for the user log functionality
You prepare a configuration file for the user log functionality, used for setting up system properties. You code the configuration file in the J2SE property file format. Specifying a file name and storage directory is optional.
In the configuration file, you can specify the keys starting with ejbserver.application.userlog from among the keys that can be specified in usrconf.properties used for J2EE servers. For details on the keys that you can specify, see 2.2.3 usrconf.properties (User property file for J2EE servers) in the uCosminexus Application Server Definition Reference Guide.
-
Implementing the processing of setting system properties
You must add the processing for reading the configuration file and for setting system properties, in the source code of EJB client applications. This processing needs to be executed before executing the initialization of the EJB client function.
-
Adding class path of JAR file
Add a class path of the JAR file corresponding to the handler to be used, in the class path when starting an EJB client application. For details on specifying the class path, see 3.7.4 Setting a JAR file to the class path of EJB client applications in the uCosminexus Application Server EJB Container Functionality Guide.
- Reference note
-
When using the user log functionality in EJB client applications, you need not set the security policy.