Hitachi

uCosminexus Application Server Command Reference Guide


cjimportapp (import J2EE application)

Organization of this page

Format

For importing an application in archive format
cjimportapp [server-name] [-nameserver provider-URL]
            [-nodelete]
      -f EAR-file-path [-f EAR-file-path...]
For importing an application in exploded archive format (application directory)
cjimportapp [server-name] [-nameserver provider-URL]
            -a application-directory-path
For importing an application in the exploded archive format (standard application file (extension .ear) or the information file of the application execution environment for the Application Server (extension .zip))
cjimportapp [server-name] [-nameserver provider-URL]
            [-nodelete] -f EAR-file-path
      -d exploded-archive-path

Function

This command imports J2EE applications into the specified J2EE server. When importing the J2EE application containing cosminexus.xml, cosminexus.xml is also imported.

If an EAR file that contains execution information is imported, the execution information of the imported J2EE application becomes the same as the execution information of the J2EE application when it was exported.

Arguments

server-name

Specifies the name of a connected J2EE server. If the server name is omitted, the host name is assumed as the server name.

-nameserver provider-URL

Specifies the access protocol for the CORBA Naming Service, the name of the host running the CORBA Naming Service, and the port number being used by the host. These items are specified in the following format:

protocol-name:: host-name: port-number

For details on the specification items, see 2.1.2 Provider URL.

-nodelete

Specifies that the application is not to be deleted if startup processing fails when the EAR file containing the execution information is imported.

If this option is omitted, the imported application is deleted if startup processing fails after the application is imported.

-f EAR-file-path

Specifies the path of the EAR file that contains the J2EE application to be imported. Multiple EAR files can be specified concurrently.

-a application-directory-path

Specifies the path of the application directory.

-d exploded-archive-path

Specifies the full path of the server-side directory for exploding the application. The user who starts the J2EE server must have write permission for the exploded destination directory.

Input examples

For importing an application in archive format
cjimportapp MyServer -f App1.ear
For importing an application directory as an application in exploded archive format
cjimportapp MyServer -a AppDirPath
For importing standard application file (extension .ear) or the information file of the application execution environment (extension .zip) for the Application Server, as an application in the exploded archive format
In Windows
cjimportapp MyServer -f App1.zip -d C: \extractdir\ApplicationDir
In UNIX
cjimportapp MyServer -f App1.zip -d /extractdir/ApplicationDir

Return values

0:

The command terminated normally.

1:

The command terminated abnormally.

2:

The command could not be executed because of an exclusion error.

3:

A timeout occurred.

8:

An information error occurred during execution.

9:

The command could not be executed because there are no administrator privileges (in Windows).

Notes