Hitachi

uCosminexus Application Server Command Reference Guide


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

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