Hitachi

uCosminexus Application Server Command Reference Guide


cjexportapp (export J2EE application)

Organization of this page

Format

cjexportapp [server-name] [-nameserver provider-URL]
      -f EAR-file-path -name J2EE-application-name
      [-raw|-normal]

Function

This command outputs a J2EE application from a J2EE server to an EAR file. Execution information can be contained in the EAR file.

If the imported J2EE application includes cosminexus.xml, the J2EE application will be exported with cosminexus.xml.

If the imported J2EE application does not include application.xml, the J2EE application will be exported without application.xml. However, if application.xml is created during the execution of the cjsetappprop command or the cjrenameapp command, the J2EE application will be exported with application.xml. For details on creating application.xml, see cjsetappprop (set HITACHI Application Property) or cjrenameapp (rename application).

Arguments

server-name

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

-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.

-f EAR-file-path
  • When -raw is specified

    This argument specifies the path of the EAR file containing the J2EE application that is to be exported.

  • When -normal is specified (or neither -raw nor -normal is specified)

    This argument specifies the file path that becomes the output destination for the information file of the application execution environment (hitachi-runtime.jar (extension .zip)) of the Application Server.

-name J2EE-application-name

Specifies the name of the J2EE application that is to be exported.

-raw

Specifies that execution information is not to be included in the EAR file. In this case, an EAR file that is compliant with JavaTM 2 Platform, Enterprise Edition, is output.

-normal

Specifies that execution information is to be included in the EAR file. When execution information is included, the size of the EAR file increases by the size of the execution information. If neither -raw nor -normal is specified, specification of -normal is assumed.

Input examples

cjexportapp MyServer -f App1.ear -name App1 -raw

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.

9:

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

Notes