Hitachi

uCosminexus Application Server Command Reference Guide


cjimportres (import resource)

Organization of this page

Format

For an EJB-JAR, WAR, or RAR file
cjimportres [server-name] [-nameserver provider-URL]
      -type {ejb|war|rar} -f file-path
      [-f file-path ...]
For a data source
cjimportres [server-name] [-nameserver provider-URL]
      -type datasource -resname data-source-display-name
      -c data-source-settings-file-path
      -f JDBC-driver-file-path
      [-f JDBC-driver-file-path ...]

Function

This command imports a resource (EJB-JAR, WAR, data source, or RAR file). The command can import multiple files concurrently.

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.

-type {ejb|war|datasource|rar}

Specifies the file type of the file to be imported:

  • ejb: EJB-JAR file

  • war: WAR file

  • datasource: JDBC driver file or data source settings file

  • rar: RAR file

-resname data-source-display-name

Specifies the name to be assigned to the imported data source. You can use alphanumeric characters (0-9, A-Z, or a-z) and the underscore (_) in the name.

-c data-source-settings-file-path

Specifies the path of the data source settings file to be read.

-f file-path or JDBC-driver-file-path

Specifies the path of the file (EJB-JAR, WAR, JDBC, or RAR) to be read.

If the JDBC driver consists of multiple files, specify the -f option multiple times.

Input examples

For an EJB-JAR file
cjimportres MyServer -type ejb -f account.jar
For a WAR file
cjimportres MyServer -type war -f account.war
For a data source file
cjimportres MyServer -type datasource -resname JdbcDbpsv -c JdbcDbpsvConf.xml -f JdbcDbpsv.jar
For a RAR file
cjimportres MyServer -type rar -f account.rar

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