G.2 How to start a system
This section explains how to start a batch server, and also how to execute batch applications.
- Organization of this subsection
(1) Starting a batch server
The method of starting a batch server is as follows:
Take note of the following points when starting a batch server:
-
You must have the root permission (when the Component Container Administrator is not set up), or the permission of the Component Container Administrator (when the Component Container Administrator is set up) to execute the cjstartsv command.
-
If a user who does not have the root permission is set as the Component Container Administrator, 1024 or a greater value must be specified in the port number of the CORBA Naming Service for batch server, when invoking the CORBA Naming Service. If you do not specify 1024 or a greater value, an error will occur, and you will not be able to start the batch server.
-
If the error message KDJE47500-E is output when a batch server is started, it indicates that the CORBA Naming Service you attempted to use was already started, and therefore, the batch server will fail to start. Stop the already started CORBA Naming Service, and then start the batch server.
To start a batch server when the CORBA Naming Service is invoked as an in-process in the standard system configuration:
-
Move the current directory using the cd command.
# cd /opt/Cosminexus/CC/server/bin
-
Start the batch server using the cjstartsv command
You must have the root permission (when the Component Container Administrator is not set up), or the permission of the Component Container Administrator (when the Component Container Administrator is set up) to execute the command.
# cjstartsv server-name -nosecurity
(2) Executing batch applications
The method of executing batch applications is as follows:
Execute a batch application using a server management command. Note that you must have root permission or Component Container administrator permission to execute the server management commands.
To execute a batch application:
-
Move the current directory using the cd command.
cd /opt/Cosminexus/CC/batch/bin/cjexecjob
-
Execute the batch application using the cjexecjob command.
You must have root permission or Component Container administrator permission to execute this command.
The method of specifying the server, to be connected to, depends upon whether the batch application uses the job scheduling functionality or not.
- When the job scheduling functionality is not used
-
Specify the batch server that can execute the job.
cjexecjob.exe server-name Java-application-class-name
- When the job scheduling functionality is used
-
Specify the job scheduling group.
cjexecjob [schedule-group-name] [-jobID job-ID] Java-application-class-name