cjstartsv (start J2EE server)
- Organization of this page
Format
cjstartsv [server-name] [-nosecurity] [-nostartapp]
Function
This command starts the J2EE servers with specified names. If you omit server names, the J2EE server having the name same as the host name will start.
Arguments
- server-name
-
Specifies the server name of the J2EE server to be started. If the server name is omitted, the host name is assumed.
- -nosecurity
-
Specifies that the SecurityManager is to be released. Although the overhead for permission checking during resource access decreases, the security level also decreases because the J2EE application can access any resource.
When you specify this option, you cannot use the setSecurityManager method of java.lang.System. If you use the setSecurityManager method, an error might occur in the execution of the J2EE server. Also, you cannot use the dynamic class loading when calling EJB from the concerned J2EE server process.
- -nostartapp
-
Specifying this option avoids situations in which an application cannot be swapped out, such as when a J2EE application that has fallen into an endless loop or is performing some other invalid operation starts automatically when the J2EE server is restarted, even after the server has been terminated forcibly.
When the J2EE server is started with this option specified, a registered J2EE application on which the following operation is performed is not started if this option is omitted the next time the J2EE server is started:
-
Setting the application property
-
Adding resources (filter, WAR, EJB-JAR, or resource adapters)
-
Deleting resources (filter, WAR, EJB-JAR, or resource adapters)
-
Importing library JAR
-
Deleting library JAR
-
Replacing applications
-
Generating SQL statements for the CMP2.x Entity Bean
If a running J2EE application is exported together with execution information, the J2EE application is started automatically when this EAR file is imported, regardless of whether the -nostartapp option is specified.
To prevent the J2EE server from stopping, you must set the status of the J2EE resource adapter to stop, after the J2EE server has started by specifying the -nostartapp option, when using the Transacted Delivery functionality. In such cases, the startup of the J2EE server gets disabled.
-
User definition files
-
In Windows
-
Cosminexus-installation-directory\CC\server\usrconf\ejb\server-name\usrconf.cfg
-
Cosminexus-installation-directory\CC\server\usrconf\ejb\server-name\usrconf.properties
-
-
In UNIX
-
/opt/Cosminexus/CC/server/usrconf/ejb/server-name/usrconf.cfg
-
/opt/Cosminexus/CC/server/usrconf/ejb/server-name/usrconf.properties
-
Return values
- 0:
-
The command terminated normally.
- 1 or higher (other than 143):
-
The command terminated abnormally.
- 143:
-
The following operations are performed while the command is running (in Windows):
-
The x button is clicked for closing the command prompt window from which the command is invoked.
-
The Windows system is shutdown.
-
The Windows system is logged out.
-
Notes
-
If you start the J2EE server with the cjstartsv command, specify the following values in java.io.tmpdir system properties:
- In Windows
-
Work-directory/ejb/J2EE-server-name/temp
- In UNIX
-
Work-directory/ejb/J2EE-server-name/temp
-
You can set this command to automatically start J2EE servers. For starting J2EE servers, see Appendix L.1 Configuration and operation procedure of the sample execution environment by server management commands in the uCosminexus Application Server System Setup and Operation Guide.
-
To execute the cjstartsv command in Windows, you must have administrator permission.
-
To execute the cjstartsv command in UNIX, you must have root permission (if Component Container Administrator is not set) or Component Container Administrator permission (if Component Container Administrator is set).
-
When you specify a server name in the command arguments, you must specify a case-sensitive character string that matches a server name specified in a cjsetup (set up or unsetup J2EE server).