Hitachi

uCosminexus Application Server Command Reference Guide


cjrenameapp (rename application)

Organization of this page

Format

cjrenameapp [server-name] [-nameserver provider-URL] 
      -name application-name -newname new-application-name

Function

This command renames a specified J2EE application.

Renaming an application enables you to manage the application's generation and version.

If you rename the application that does not contain application.xml, application.xml is created. Therefore, the renamed J2EE application becomes the application containing application.xml.

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.

-name application-name

Specifies the name of the J2EE application to be renamed.

-newname new-application-name

Specifies the new J2EE application name, as one or more characters.

You can use alphanumeric characters (0-9, A-Z, or a-z) or the following special characters in the name:

plus (+), hyphen (-), period (.), caret (^), underscore (_)

Input examples

cjrenameapp MyServer -name App1 -newname App2

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